added pending

This commit is contained in:
2026-01-08 13:20:41 -05:00
parent d27b61c56d
commit 590a24bc99
2 changed files with 4 additions and 4 deletions

View File

@@ -25,8 +25,8 @@ class DashboardController {
if (isset($_GET['status']) && !empty($_GET['status'])) { if (isset($_GET['status']) && !empty($_GET['status'])) {
$status = $_GET['status']; $status = $_GET['status'];
} else if (!isset($_GET['show_all'])) { } else if (!isset($_GET['show_all'])) {
// Default: show Open and In Progress (exclude Closed) // Default: show Open, Pending, and In Progress (exclude Closed)
$status = 'Open,In Progress'; $status = 'Open,Pending,In Progress';
} }
// If $_GET['show_all'] exists or no status param with show_all, show all tickets (status = null) // If $_GET['show_all'] exists or no status param with show_all, show all tickets (status = null)

View File

@@ -109,8 +109,8 @@
<div class="filter-group"> <div class="filter-group">
<h4>Status</h4> <h4>Status</h4>
<?php <?php
$currentStatus = isset($_GET['status']) ? explode(',', $_GET['status']) : ['Open', 'In Progress']; $currentStatus = isset($_GET['status']) ? explode(',', $_GET['status']) : ['Open', 'Pending', 'In Progress'];
$allStatuses = ['Open', 'In Progress', 'Closed']; $allStatuses = ['Open', 'Pending', 'In Progress', 'Closed'];
foreach ($allStatuses as $status): foreach ($allStatuses as $status):
?> ?>
<label> <label>