Skip to content

Commit

Permalink
Tidying
Browse files Browse the repository at this point in the history
  • Loading branch information
wrongecho committed Sep 14, 2024
1 parent c65db34 commit 5dc9f47
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tickets.php
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}
}
Expand Down

0 comments on commit 5dc9f47

Please sign in to comment.