Fix kanban drag-and-drop to send ticket_id as string

parseInt(ticketId, 10) was stripping leading zeros before sending
to update_ticket.php. Switch to String(ticketId) for consistency
with all other ticket ID handling in the JS codebase.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-11 13:42:30 -04:00
parent c442e2d47f
commit 1b75ad14fb
+1 -1
View File
@@ -1224,7 +1224,7 @@ function populateKanbanCards() {
method: 'POST', method: 'POST',
credentials: 'same-origin', credentials: 'same-origin',
headers: { 'Content-Type': 'application/json', 'X-CSRF-Token': window.CSRF_TOKEN || '' }, headers: { 'Content-Type': 'application/json', 'X-CSRF-Token': window.CSRF_TOKEN || '' },
body: JSON.stringify({ ticket_id: parseInt(ticketId, 10), status: newStatus }) body: JSON.stringify({ ticket_id: String(ticketId), status: newStatus })
}) })
.then(r => r.json()) .then(r => r.json())
.then(data => { .then(data => {