Skip to content

Commit

Permalink
Fix variant editing
Browse files Browse the repository at this point in the history
  • Loading branch information
sh-csg committed Dec 9, 2024
1 parent 7ae47c8 commit 7a58005
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions classes/form/base_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down

0 comments on commit 7a58005

Please sign in to comment.