mirror of https://github.com/itflow-org/itflow
Added hidden status variable upon search form POSt under tickets to allow querying within a status
This commit is contained in:
parent
c6bafa9420
commit
0047198bcd
19
tickets.php
19
tickets.php
|
|
@ -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">
|
||||
|
|
|
|||
Loading…
Reference in New Issue