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

Order: Signup fails on php 8.1 when numbers are not show

    Details

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

      Description

      To reproduce:

      • Visit admin/settings/company/groups/edit/1/
      • Uncheck the boxes to show phone and fax
      • Create a standard order form using that client group
      • As an unauthenticated user place an order using the order form
      • Receive a 500 error on the signup page

      Solution:
      This should be resolved by updating plugins/order/controllers/signup.php around line 116 from

                      $client_info['numbers'] = $this->ArrayHelper->keyToNumeric($client_info['numbers']);
      

      To

                      $client_info['numbers'] = $this->ArrayHelper->keyToNumeric($client_info['numbers'] ?? []);
      

        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:
              20/Jun/23

              Agile