diff --git a/admin/admin_ticket.php b/admin/admin_ticket.php index bb67be44..eff4dac9 100644 --- a/admin/admin_ticket.php +++ b/admin/admin_ticket.php @@ -1036,6 +1036,11 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php'); { if ($v['use'] && $v['place']==0) { + if ($modsForHesk_settings['custom_field_setting']) + { + $v['name'] = $hesklang[$v['name']]; + } + echo '

'.$v['name'].': '; if ($v['type'] == 'date' && !empty($ticket[$k])) { @@ -1062,6 +1067,11 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php'); { if ($v['use'] && $v['place']) { + if ($modsForHesk_settings['custom_field_setting']) + { + $v['name'] = $hesklang[$v['name']]; + } + echo '

'.$v['name'].': '; if ($v['type'] == 'date' && !empty($ticket[$k])) { diff --git a/admin/edit_post.php b/admin/edit_post.php index 730cd9d4..1729ea4f 100644 --- a/admin/edit_post.php +++ b/admin/edit_post.php @@ -246,6 +246,11 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php'); { if ($v['use']) { + if ($modsForHesk_settings['custom_field_setting']) + { + $v['name'] = $hesklang[$v['name']]; + } + $k_value = $ticket[$k]; if ($v['type'] == 'checkbox') diff --git a/admin/export.php b/admin/export.php index 4be220ef..abf577f6 100644 --- a/admin/export.php +++ b/admin/export.php @@ -481,6 +481,11 @@ if (isset($_GET['w'])) { if ($v['use']) { + if ($modsForHesk_settings['custom_field_setting']) + { + $v['name'] = $hesklang[$v['name']]; + } + $tmp .= ''.$v['name'].'' . "\n"; } } diff --git a/admin/manage_canned.php b/admin/manage_canned.php index f3a61a18..cb1a8958 100644 --- a/admin/manage_canned.php +++ b/admin/manage_canned.php @@ -285,6 +285,11 @@ myField.value += myValue; { if ($v['use']) { + if ($modsForHesk_settings['custom_field_setting']) + { + $v['name'] = $hesklang[$v['name']]; + } + echo '| '.$v['name'].' '; } } diff --git a/admin/new_ticket.php b/admin/new_ticket.php index e3b52730..7e377ecc 100644 --- a/admin/new_ticket.php +++ b/admin/new_ticket.php @@ -184,6 +184,11 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php'); { if ($v['use'] && $v['place']==0) { + if ($modsForHesk_settings['custom_field_setting']) + { + $v['name'] = $hesklang[$v['name']]; + } + // $v['req'] = $v['req'] ? '*' : ''; // Staff doesn't need to fill in required custom fields $v['req'] = ''; @@ -398,6 +403,11 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php'); { if ($v['use'] && $v['place']) { + if ($modsForHesk_settings['custom_field_setting']) + { + $v['name'] = $hesklang[$v['name']]; + } + // $v['req'] = $v['req'] ? '*' : ''; // Staff doesn't need to fill in required custom fields $v['req'] = ''; diff --git a/inc/show_search_form.inc.php b/inc/show_search_form.inc.php index 46c1faef..24c61c5d 100644 --- a/inc/show_search_form.inc.php +++ b/inc/show_search_form.inc.php @@ -349,6 +349,11 @@ $more2 = empty($_GET['more2']) ? 0 : 1; $selected = ($what == $k) ? 'selected="selected"' : ''; if ($v['use']) { + if ($modsForHesk_settings['custom_field_setting']) + { + $v['name'] = $hesklang[$v['name']]; + } + $v['name'] = (strlen($v['name']) > 30) ? substr($v['name'],0,30) . '...' : $v['name']; echo ''; } diff --git a/index.php b/index.php index dc43637c..4e373150 100644 --- a/index.php +++ b/index.php @@ -66,7 +66,7 @@ exit(); function print_add_ticket() { - global $hesk_settings, $hesklang; + global $hesk_settings, $hesklang, $modsForHesk_settings; // Auto-focus first empty or error field define('AUTOFOCUS', true); @@ -222,8 +222,14 @@ function print_add_ticket() foreach ($hesk_settings['custom_fields'] as $k=>$v) { + if ($v['use'] && $v['place']==0) { + if ($modsForHesk_settings['custom_field_setting']) + { + $v['name'] = $hesklang[$v['name']]; + } + $v['req'] = $v['req'] ? '*' : ''; if ($v['type'] == 'checkbox') @@ -447,12 +453,18 @@ function print_add_ticket() $v) { + if ($v['use'] && $v['place']) { + if ($modsForHesk_settings['custom_field_setting']) + { + $v['name'] = $hesklang[$v['name']]; + } + $v['req'] = $v['req'] ? '*' : ''; if ($v['type'] == 'checkbox') diff --git a/print.php b/print.php index 5ae2ebf7..4b0fb8f8 100644 --- a/print.php +++ b/print.php @@ -206,8 +206,13 @@ $num_cols = 0; echo ''; foreach ($hesk_settings['custom_fields'] as $k=>$v) { - if ($v['use']) + if ($v['use']) { + if ($modsForHesk_settings['custom_field_setting']) + { + $v['name'] = $hesklang[$v['name']]; + } + if ($num_cols == 3) { echo ''; diff --git a/submit_ticket.php b/submit_ticket.php index bcd094e7..a8a02f8a 100644 --- a/submit_ticket.php +++ b/submit_ticket.php @@ -207,6 +207,11 @@ foreach ($hesk_settings['custom_fields'] as $k=>$v) { if ($v['use']) { + if ($modsForHesk_settings['custom_field_setting']) + { + $v['name'] = $hesklang[$v['name']]; + } + if ($v['type'] == 'checkbox') { $tmpvar[$k]=''; diff --git a/ticket.php b/ticket.php index 1bddc135..18c4c008 100644 --- a/ticket.php +++ b/ticket.php @@ -330,6 +330,11 @@ require_once(HESK_PATH . 'inc/header.inc.php'); { if ($v['use'] && $v['place']==0) { + if ($modsForHesk_settings['custom_field_setting']) + { + $v['name'] = $hesklang[$v['name']]; + } + echo '

'.$v['name'].': '; if ($v['type'] == 'date' && !empty($ticket[$k])) { @@ -356,6 +361,11 @@ require_once(HESK_PATH . 'inc/header.inc.php'); { if ($v['use'] && $v['place']) { + if ($modsForHesk_settings['custom_field_setting']) + { + $v['name'] = $hesklang[$v['name']]; + } + echo '

'.$v['name'].': '; if ($v['type'] == 'date' && !empty($ticket[$k])) {