From dd7131cae198031eb8d894a54fa7682f6f328d07 Mon Sep 17 00:00:00 2001 From: o-psi Date: Fri, 22 Dec 2023 15:14:56 +0000 Subject: [PATCH] Fix ticket_assigned_to filter in SQL query --- tickets.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tickets.php b/tickets.php index e369638e..71fa73a6 100644 --- a/tickets.php +++ b/tickets.php @@ -58,7 +58,7 @@ $sql = mysqli_query( LEFT JOIN assets ON ticket_asset_id = asset_id LEFT JOIN locations ON ticket_location_id = location_id LEFT JOIN vendors ON ticket_vendor_id = vendor_id - WHERE ticket_assigned_to LIKE '%$ticket_assigned_filter%' + WHERE ticket_assigned_to LIKE '$ticket_assigned_filter' AND $ticket_status_snippet AND DATE(ticket_created_at) BETWEEN '$dtf' AND '$dtt' AND (CONCAT(ticket_prefix,ticket_number) LIKE '%$q%' OR client_name LIKE '%$q%' OR ticket_subject LIKE '%$q%' OR ticket_status LIKE '%$q%' OR ticket_priority LIKE '%$q%' OR user_name LIKE '%$q%' OR contact_name LIKE '%$q%' OR asset_name LIKE '%$q%' OR vendor_name LIKE '%$q%' OR ticket_vendor_ticket_number LIKE '%q%')