Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 5.2.0
-
Component/s: None
-
Labels:None
Description
To reproduce:
- Create two package option groups
- Create two package options and assign them to both groups
- Set config option logic on one of the groups
- View the logic on the other group and see that it shows what was set on the first group
To resolve change app/controllers/admin_package_options.php around line 489:
$condition_sets = $this->PackageOptionConditionSets->getAll(['option_id' => $option->id]);
To
$condition_sets = $this->PackageOptionConditionSets->getAll(['option_id' => $option->id, 'option_group_id' => $group->id]);