From e1a93035fdd918fd1cdf536d0696310cc2fd5413 Mon Sep 17 00:00:00 2001 From: wrongecho Date: Wed, 28 Jan 2026 14:57:28 +0000 Subject: [PATCH] Undo client scoping uses = instead of LIKE in tickets resolve.php --- see forum thread 2667 --- api/v1/tickets/resolve.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/v1/tickets/resolve.php b/api/v1/tickets/resolve.php index f8d5c34c..1079bbce 100644 --- a/api/v1/tickets/resolve.php +++ b/api/v1/tickets/resolve.php @@ -15,7 +15,7 @@ $update_count = false; if (!empty($ticket_id)) { - $ticket_row = mysqli_fetch_assoc(mysqli_query($mysqli, "SELECT * FROM tickets WHERE ticket_id = '$ticket_id' AND ticket_resolved_at IS NULL AND ticket_client_id LIKE '$client_id' LIMIT 1")); + $ticket_row = mysqli_fetch_assoc(mysqli_query($mysqli, "SELECT * FROM tickets WHERE ticket_id = '$ticket_id' AND ticket_resolved_at IS NULL AND ticket_client_id = $client_id LIMIT 1")); // Grab what we need, not using the model $ticket_id = intval($ticket_row['ticket_id']); // Override so things fail if this is bad