Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 5.6.1
-
Component/s: None
-
Labels:None
Description
To reproduce:
- Create a ticket assigned to a department
- Post an empty reply in the admin interface
- See error "Undefined property: stdClass::$custom_fields."
To fix, update plugins/support_manager/controllers/admin_tickets.php around lines 458 and 606 from:
$input_fields = $this->formatDepartmentCustomFields($department->fields, $vars->custom_fields);
To
$input_fields = $this->formatDepartmentCustomFields($department->fields, $vars->custom_fields ?? []);