Send all enabled custom fields

remotes/upstream/api-rewrite
Mike Koch 7 years ago
parent a2c98a5a26
commit 2b0d2bb9cc

@ -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];
}
}

Loading…
Cancel
Save