views/TicketView.php:212-249 renders the P1/P2 SLA banner server-side based on $priorityNum at page-load time. assets/js/ticket.js:471-475's priority-change handler (updateTicketField('priority', ...)) only updates a data-priority attribute on .lt-frame-ticket — it never touches #priorityAlertBanner or the SLA progress bar.
Impact: Changing a ticket from P1→P3 in edit mode leaves the SLA breach banner and progress bar visibly showing (still counting up) until the page is reloaded. Conversely, raising a ticket from P3→P1 shows no SLA banner at all until reload, even though the SLA clock should now be actively running.
Fix: After a successful priority update, re-render (or show/hide) the SLA banner and progress bar client-side based on the new priority, matching what a fresh page load would show, instead of leaving stale server-rendered state on screen.
**Severity:** Medium
`views/TicketView.php:212-249` renders the P1/P2 SLA banner server-side based on `$priorityNum` at page-load time. `assets/js/ticket.js:471-475`'s priority-change handler (`updateTicketField('priority', ...)`) only updates a `data-priority` attribute on `.lt-frame-ticket` — it never touches `#priorityAlertBanner` or the SLA progress bar.
**Impact:** Changing a ticket from P1→P3 in edit mode leaves the SLA breach banner and progress bar visibly showing (still counting up) until the page is reloaded. Conversely, raising a ticket from P3→P1 shows no SLA banner at all until reload, even though the SLA clock should now be actively running.
**Fix:** After a successful priority update, re-render (or show/hide) the SLA banner and progress bar client-side based on the new priority, matching what a fresh page load would show, instead of leaving stale server-rendered state on screen.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Severity: Medium
views/TicketView.php:212-249renders the P1/P2 SLA banner server-side based on$priorityNumat page-load time.assets/js/ticket.js:471-475's priority-change handler (updateTicketField('priority', ...)) only updates adata-priorityattribute on.lt-frame-ticket— it never touches#priorityAlertBanneror the SLA progress bar.Impact: Changing a ticket from P1→P3 in edit mode leaves the SLA breach banner and progress bar visibly showing (still counting up) until the page is reloaded. Conversely, raising a ticket from P3→P1 shows no SLA banner at all until reload, even though the SLA clock should now be actively running.
Fix: After a successful priority update, re-render (or show/hide) the SLA banner and progress bar client-side based on the new priority, matching what a fresh page load would show, instead of leaving stale server-rendered state on screen.
Fixed and verified (real MariaDB/jsdom/curl-range as applicable). Merged to main in commit
23d94bf.