Show due date on ticket home page

This commit is contained in:
Mike Koch 2018-01-31 22:04:11 -05:00
parent a57befcc69
commit 4e2b21ae60
No known key found for this signature in database
GPG Key ID: 9BA5D7F8391455ED
3 changed files with 13 additions and 1 deletions

View File

@ -32,6 +32,7 @@ $hesk_settings['possible_ticket_list'] = array(
'staffreplies' => $hesklang['replies'] . ' (' . $hesklang['staff'] . ')',
'lastreplier' => $hesklang['last_replier'],
'time_worked' => $hesklang['ts'],
'due_date' => $hesklang['due_date'],
);
define('HESK_NO_ROBOTS', true);

View File

@ -45,7 +45,8 @@ LEFT(`message`, 400) AS `message`,
`replierid`,
`archive`,
`locked`,
`merged`
`merged`,
`due_date`
";
foreach ($hesk_settings['custom_fields'] as $k => $v) {

View File

@ -375,6 +375,16 @@ if ($total > 0) {
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
foreach ($hesk_settings['custom_fields'] as $key => $value) {
if ($value['use'] && hesk_show_column($key)) {