Before we upgraded to the latest version we were having problems with Due Dates/Times for closed tickets. So instead of farting about with settings and so on, I simply hacked
Code:
/modules/core/staff_dashboard.php
with
PHP Code:
// Get Overdue Tickets
$dbCore->query("SELECT * FROM `". TABLE_PREFIX ."tickets` WHERE `departmentid` IN (". buildIN($_assigns) .") AND `ticketstatusid` IN (". buildIN(getDisplayTicketStatusList()) .") AND (`duetime` < '". DATENOW ."' AND `duetime` != 0) AND ticketstatusid <> 3;");
// Get Tickets Due Today
$dbCore->query("SELECT * FROM `". TABLE_PREFIX ."tickets` WHERE `departmentid` IN (". buildIN($_assigns) .") AND `ticketstatusid` IN (". buildIN(getDisplayTicketStatusList()) .") AND (`duetime` > '". intval($_datestart) ."' AND `duetime` < '". intval($_dateend) ."') AND ticketstatusid <> 3;");
By adding an extra
Code:
AND ticketstatusid <> 3
To the end of each of the above queries I can now prevent any closed tickets being displayed "incorrectly" as due. Due tickets should never be flagged if their status is closed.