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:
johnnyq
2026-11-20 12:49:34 -05:00
parent 4083b7cbf3
commit 2fdb280406
89 changed files with 406 additions and 319 deletions

View File

@@ -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;
}