Send all enabled custom fields

This commit is contained in:
Mike Koch 2017-02-01 21:03:05 -05:00
parent a2c98a5a26
commit 2b0d2bb9cc

View File

@ -58,7 +58,7 @@ class Ticket {
$ticket->customFields = array(); $ticket->customFields = array();
foreach ($heskSettings['custom_fields'] as $key => $value) { 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]; $ticket->customFields[str_replace('custom', '', $key)] = $row[$key];
} }
} }