Uploaded image for project: 'Blesta Core'
  1. Blesta Core
  2. CORE-4511

Config option logic - Configuration shows logic from other option groups

    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]);
      

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            jonathan Jonathan Reissmueller
            Reporter:
            jonathan Jonathan Reissmueller
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Fix Release Date:
              18/Oct/21

              Time Tracking

              Estimated:
              Original Estimate - Not Specified
              Not Specified
              Remaining:
              Remaining Estimate - 0 minutes
              0m
              Logged:
              Time Spent - 10 minutes
              10m

                Agile