Show due date on ticket home page
This commit is contained in:
parent
a57befcc69
commit
4e2b21ae60
@ -32,6 +32,7 @@ $hesk_settings['possible_ticket_list'] = array(
|
|||||||
'staffreplies' => $hesklang['replies'] . ' (' . $hesklang['staff'] . ')',
|
'staffreplies' => $hesklang['replies'] . ' (' . $hesklang['staff'] . ')',
|
||||||
'lastreplier' => $hesklang['last_replier'],
|
'lastreplier' => $hesklang['last_replier'],
|
||||||
'time_worked' => $hesklang['ts'],
|
'time_worked' => $hesklang['ts'],
|
||||||
|
'due_date' => $hesklang['due_date'],
|
||||||
);
|
);
|
||||||
|
|
||||||
define('HESK_NO_ROBOTS', true);
|
define('HESK_NO_ROBOTS', true);
|
||||||
|
@ -45,7 +45,8 @@ LEFT(`message`, 400) AS `message`,
|
|||||||
`replierid`,
|
`replierid`,
|
||||||
`archive`,
|
`archive`,
|
||||||
`locked`,
|
`locked`,
|
||||||
`merged`
|
`merged`,
|
||||||
|
`due_date`
|
||||||
";
|
";
|
||||||
|
|
||||||
foreach ($hesk_settings['custom_fields'] as $k => $v) {
|
foreach ($hesk_settings['custom_fields'] as $k => $v) {
|
||||||
|
@ -375,6 +375,16 @@ if ($total > 0) {
|
|||||||
echo '<td class="' . $color . '">' . $ticket['time_worked'] . '</td>';
|
echo '<td class="' . $color . '">' . $ticket['time_worked'] . '</td>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Print due date
|
||||||
|
if (hesk_show_column('due_date')) {
|
||||||
|
$due_date = $hesklang['none'];
|
||||||
|
if ($ticket['due_date'] != null) {
|
||||||
|
$due_date = hesk_date($ticket['due_date'], false, true, false);
|
||||||
|
}
|
||||||
|
|
||||||
|
echo '<td class="' . $color . '">' . ($ticket['due_date'] == null ? 'NONE' : date('Y-m-d', $due_date)) . '</td>';
|
||||||
|
}
|
||||||
|
|
||||||
// Print custom fields
|
// Print custom fields
|
||||||
foreach ($hesk_settings['custom_fields'] as $key => $value) {
|
foreach ($hesk_settings['custom_fields'] as $key => $value) {
|
||||||
if ($value['use'] && hesk_show_column($key)) {
|
if ($value['use'] && hesk_show_column($key)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user