From 5dc9f47799207b62203e9e945ec52a3d3288b791 Mon Sep 17 00:00:00 2001 From: wrongecho Date: Sat, 14 Sep 2024 23:47:19 +0100 Subject: [PATCH] Tidying --- tickets.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tickets.php b/tickets.php index 112627f3d..f113977fb 100644 --- a/tickets.php +++ b/tickets.php @@ -20,16 +20,15 @@ $sanitizedStatusesString = implode(",", $sanitizedStatuses); $ticket_status_snippet = "ticket_status IN ($sanitizedStatusesString)"; - var_dump($status); - } else { + // TODO: Convert this to use the status IDs if (isset($_GET['status']) && ($_GET['status']) == 'Closed') { $status = 'Closed'; $ticket_status_snippet = "ticket_resolved_at IS NOT NULL"; } else { // Default - Show open tickets - $status = 2; + $status = 'Open'; $ticket_status_snippet = "ticket_resolved_at IS NULL"; } }