Added hidden status variable upon search form POSt under tickets to allow querying within a status

This commit is contained in:
johnnyq 2022-01-05 22:40:26 -05:00
parent c6bafa9420
commit 0047198bcd
1 changed files with 9 additions and 10 deletions

View File

@ -36,17 +36,15 @@
$disp = "ASC";
}
// Ticket status from GET
if (isset($_GET['status']) && ($_GET['status']) == 'Open') {
$status = 'Open';
//Ticket status from GET
if(isset($_GET['status']) && ($_GET['status']) == 'Open'){
$status = 'Open';
}elseif(isset($_GET['status']) && ($_GET['status']) == 'Closed'){
$status = 'Closed';
}else{
$status = '%';
}
elseif (isset($_GET['status']) && ($_GET['status']) == 'Closed') {
$status = 'Closed';
}
else {
$status = '%';
}
if(isset($_GET['status'])) {
if(isset($_GET['status'])){
unset($_GET['status']);
}
@ -117,6 +115,7 @@
</div>
<div class="card-body">
<form class="mb-4" autocomplete="off">
<input type="hidden" name="status" value="<?php echo $status; ?>">
<div class="row">
<div class="col-sm-4">
<div class="input-group">