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

Config option logic loaded for non-displayed options

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.7.0-b1
    • Component/s: None
    • Labels:
      None

      Description

      TBD

        Activity

        Hide
        jonathan Jonathan Reissmueller added a comment -

        Change stuff that looks like this

                if (isset($filters['option_ids'])) {
                    $this->Record->where('package_option_condition_sets.option_id', 'in', $filters['option_ids']);
                }
        

        To something like this

                $option_logic->setPackageOptionConditionSets(
                    $this->PackageOptionConditionSets->getAll(
                        [
                            'package_id' => $pricing->package_id,
                            'opition_ids' => $this->Form->collapseObjectArray(
                                $this->PackageOptions->getAllByPackageId(
                                    $pricing->package_id,
                                    $pricing->term,
                                    $pricing->period,
                                    $pricing->currency,
                                    $currency,
                                    $options
                                ),
                                'id',
                                'id',
                            )
                        ],
                        ['option_id']
                    )
                );
        
        Show
        jonathan Jonathan Reissmueller added a comment - Change stuff that looks like this if (isset($filters['option_ids'])) { $ this ->Record->where('package_option_condition_sets.option_id', 'in', $filters['option_ids']); } To something like this $option_logic->setPackageOptionConditionSets( $ this ->PackageOptionConditionSets->getAll( [ 'package_id' => $pricing->package_id, 'opition_ids' => $ this ->Form->collapseObjectArray( $ this ->PackageOptions->getAllByPackageId( $pricing->package_id, $pricing->term, $pricing->period, $pricing->currency, $currency, $options ), 'id', 'id', ) ], ['option_id'] ) );

          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:
              4/May/23

              Agile