From d6cf04b8f2af8e62f442331f325d3e9ffefb439b Mon Sep 17 00:00:00 2001 From: Marcus Hill Date: Sat, 28 Oct 2023 14:40:27 +0100 Subject: [PATCH] Codesmell --- ajax.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ajax.php b/ajax.php index f89c4397..e8615dcf 100644 --- a/ajax.php +++ b/ajax.php @@ -329,8 +329,8 @@ if (isset($_GET['scheduled_ticket_get_json_details'])) { $client_id = intval($_GET['client_id']); $ticket_id = intval($_GET['ticket_id']); - $contact_sql = mysqli_query($mysqli, "SELECT contact_id, contact_name FROM contacts - WHERE contact_client_id = $client_id + $contact_sql = mysqli_query($mysqli, "SELECT contact_id, contact_name FROM contacts + WHERE contact_client_id = $client_id AND contact_archived_at IS NULL ORDER BY contact_primary DESC, contact_technical DESC, contact_name ASC" );