mirror of
https://github.com/itflow-org/itflow
synced 2026-11-22 12:27:23 +00:00
Quick add: the plus beside Contact, Site, Location, Assigned to and Vendor in New Ticket, Edit Ticket and the asset form opens the usual New Contact, New Location or New Vendor window over the form, saved in the background and picked, in place of the pop-up
This commit is contained in:
@@ -1757,12 +1757,17 @@ function ticketSlaState($row) {
|
||||
'due' => $responded ? ($row['ticket_resolution_due_at'] ?? null) : ($row['ticket_response_due_at'] ?? null),
|
||||
'what' => $responded ? 'Resolution due' : 'First response due',
|
||||
];
|
||||
if ($stage === 2) {
|
||||
// Missed already - as the SLA breached view and the dashboard count it
|
||||
if ($stage === 2 || ($row['ticket_response_sla_met'] ?? null) === '0' || ($row['ticket_resolution_sla_met'] ?? null) === '0') {
|
||||
return ['key' => 'breached'] + $state;
|
||||
}
|
||||
if (intval($row['ticket_status_pauses_sla'] ?? 0)) {
|
||||
return ['key' => 'paused'] + $state;
|
||||
}
|
||||
// Past its deadline is a breach whether or not cron has got round to marking it
|
||||
if (!empty($state['due']) && strtotime($state['due']) < time()) {
|
||||
return ['key' => 'breached'] + $state;
|
||||
}
|
||||
if ($stage === 1) {
|
||||
return ['key' => 'at_risk'] + $state;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user