diff --git a/classes/form/base_form.php b/classes/form/base_form.php index c3811a1..8da767b 100644 --- a/classes/form/base_form.php +++ b/classes/form/base_form.php @@ -216,6 +216,8 @@ public function set_data_for_dynamic_submission(): void { if (isset($source->name)) { $flavors = $DB->get_fieldset_select('tiny_c4l_comp_flavor', 'flavorname', 'componentname = ?', ['componentname' => $source->name]); $source->flavors = $flavors;; + $variants = $DB->get_fieldset_select('tiny_c4l_comp_variant', 'variant', 'component = ?', ['component' => $source->id]); + $source->variants = $variants; } }