Ticket SLA: Fix on hold to pause only after first reply, show resolved closed and onhold as fixed on paused sla in the list

This commit is contained in:
johnnyq
2026-08-15 19:55:40 -04:00
parent bcc73737e4
commit 6af0634f47
11 changed files with 142 additions and 15 deletions

View File

@@ -22,6 +22,9 @@ while ($row = mysqli_fetch_assoc($status_sql)) {
'name' => escapeHtml($row['ticket_status_name']),
'color' => escapeHtml($row['ticket_status_color']),
'pauses_sla' => intval($row['ticket_status_pauses_sla']),
// Resolved pauses the clock by finishing the ticket rather than parking it, so
// the header marker would be noise on that column (Closed is not a column here)
'show_sla_pause' => intval($row['ticket_status_pauses_sla']) && $status_id != 4,
'tickets' => array()
);
}
@@ -105,7 +108,7 @@ $kanban = array_values($statuses);
<div class="kanban-column-header" style="border-top-color: <?= $column['color'] ?>">
<span class="kanban-column-name"><?= $column['name'] ?></span>
<span class="badge rounded-pill bg-secondary ms-1"><?= count($column['tickets']) ?></span>
<?php if ($column['pauses_sla']) { ?>
<?php if ($column['show_sla_pause']) { ?>
<i class="fas fa-fw fa-pause text-secondary ms-1" title="The resolution SLA clock is paused in this status"></i>
<?php } ?>
</div>