From 2b0d2bb9ccfc50eb1aa19bdf6a4fedde718c1726 Mon Sep 17 00:00:00 2001 From: Mike Koch Date: Wed, 1 Feb 2017 21:03:05 -0500 Subject: [PATCH] Send all enabled custom fields --- api/businesslogic/ticket/Ticket.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/businesslogic/ticket/Ticket.php b/api/businesslogic/ticket/Ticket.php index bf1326c0..f5bf749d 100644 --- a/api/businesslogic/ticket/Ticket.php +++ b/api/businesslogic/ticket/Ticket.php @@ -58,7 +58,7 @@ class Ticket { $ticket->customFields = array(); foreach ($heskSettings['custom_fields'] as $key => $value) { - if ($value['use'] == 1 && hesk_is_custom_field_in_category($key, intval($ticket->categoryId))) { + if ($value['use'] && hesk_is_custom_field_in_category($key, intval($ticket->categoryId))) { $ticket->customFields[str_replace('custom', '', $key)] = $row[$key]; } }