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

Support Manager: Custom fields disabled on PHP 8.2 and 8.3

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 5.10.2
    • Fix Version/s: 5.11.0
    • Component/s: Plugins
    • Labels:
      None

      Description

      On PHP 8.2 and 8.3, clients see custom fields as disabled even if client can add is enabled.

      Create text field, all 3 options enabled.

      Login as client try to create ticket, note field is disabled.

        Activity

        Hide
        admin Paul Phillips added a comment -

        To fix- In plugins/support_manager/controllers/client_tickets.php around line 788 change

                    if ($field->client_add !== 1 || ($field->client_add == 1 && !empty($vars[$field->id]))) {
                        $disabled = ['disabled' => 'disabled'];
                    }
        

        To:

                    if ($field->client_add != 1 || ($field->client_add == 1 && !empty($vars[$field->id]))) {
                        $disabled = ['disabled' => 'disabled'];
                    }
        
        Show
        admin Paul Phillips added a comment - To fix- In plugins/support_manager/controllers/client_tickets.php around line 788 change if ($field->client_add !== 1 || ($field->client_add == 1 && !empty($vars[$field->id]))) { $disabled = ['disabled' => 'disabled']; } To: if ($field->client_add != 1 || ($field->client_add == 1 && !empty($vars[$field->id]))) { $disabled = ['disabled' => 'disabled']; }

          People

          • Assignee:
            Unassigned
            Reporter:
            admin Paul Phillips
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:

              Agile