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

Order: Restricted packages mess up list page

    Details

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

      Description

      On a wizard list order form, a client viewing package groups with access to a restricted package will see many blank packages.

      On lines 86-88 we have:

                      if (in_array($package->id, $client_packages)) {
                          $packages[$group->package_group_id] = $package;
                      }
      

      Instead it should be:

                      if (in_array($package->id, $client_packages)) {
                          if (!isset($packages[$group->package_group_id])) {
                              $packages[$group->package_group_id] = [];
                          }
                          $packages[$group->package_group_id][] = $package;
                      }
      

        Activity

        jonathan Jonathan Reissmueller created issue -
        jonathan Jonathan Reissmueller made changes -
        Field Original Value New Value
        Rank Ranked higher
        jonathan Jonathan Reissmueller made changes -
        Rank Ranked higher
        jonathan Jonathan Reissmueller made changes -
        Security Private [ 10000 ]
        tyson Tyson Phillips (Inactive) made changes -
        Sprint 4.3.0 Sprint 11 [ 62 ]
        tyson Tyson Phillips (Inactive) made changes -
        Rank Ranked higher
        Automated transition triggered when Jonathan Reissmueller created a branch in Stash -
        Status Open [ 1 ] In Progress [ 3 ]
        jonathan Jonathan Reissmueller made changes -
        Remaining Estimate 0 minutes [ 0 ]
        Time Spent 10 minutes [ 600 ]
        Worklog Id 11266 [ 11266 ]
        Automated transition triggered when Jonathan Reissmueller created pull request #49 in Stash -
        Status In Progress [ 3 ] In Review [ 5 ]
        Resolution Fixed [ 1 ]
        Automated transition triggered when Tyson Phillips (Inactive) merged pull request #49 in Stash -
        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:
              29/Jun/18

              Time Tracking

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

                Agile