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

        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:
              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