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

        jonathan Jonathan Reissmueller created issue -
        jonathan Jonathan Reissmueller made changes -
        Field Original Value New Value
        Rank Ranked higher
        jonathan Jonathan Reissmueller made changes -
        Sprint 5.7.0 Sprint 6 [ 175 ]
        jonathan Jonathan Reissmueller made changes -
        Rank Ranked higher
        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'] ) );
        jonathan Jonathan Reissmueller made changes -
        Assignee Jonathan Reissmueller [ jonathan ]
        jonathan Jonathan Reissmueller made changes -
        Status Open [ 1 ] In Review [ 5 ]
        Resolution Fixed [ 1 ]
        jonathan Jonathan Reissmueller made changes -
        Status In Review [ 5 ] Closed [ 6 ]

          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