Skip to content
Snippets Groups Projects
Commit 40e6737b authored by Peter Rotich's avatar Peter Rotich
Browse files

Clear active menu on search with no status set

parent ee1007ab
No related branches found
No related tags found
No related merge requests found
...@@ -456,7 +456,7 @@ if($ticket) { ...@@ -456,7 +456,7 @@ if($ticket) {
$inc = 'ticket-view.inc.php'; $inc = 'ticket-view.inc.php';
if($_REQUEST['a']=='edit' && $thisstaff->canEditTickets()) if($_REQUEST['a']=='edit' && $thisstaff->canEditTickets())
$inc = 'ticket-edit.inc.php'; $inc = 'ticket-edit.inc.php';
}else { } else {
$inc = 'tickets.inc.php'; $inc = 'tickets.inc.php';
if($_REQUEST['a']=='open' && $thisstaff->canCreateTickets()) if($_REQUEST['a']=='open' && $thisstaff->canCreateTickets())
$inc = 'ticket-open.inc.php'; $inc = 'ticket-open.inc.php';
...@@ -470,8 +470,14 @@ if($ticket) { ...@@ -470,8 +470,14 @@ if($ticket) {
elseif (!Export::saveTickets($query, "tickets-$ts.csv", 'csv')) elseif (!Export::saveTickets($query, "tickets-$ts.csv", 'csv'))
$errors['err'] = 'Internal error: Unable to dump query results'; $errors['err'] = 'Internal error: Unable to dump query results';
} }
elseif(!$_POST && $_REQUEST['a']!='search' && ($min=$thisstaff->getRefreshRate()))
define('AUTO_REFRESH',1); //set refresh rate if the user has it configured //Clear active submenu on search with no status
if($_REQUEST['a']=='search' && !$_REQUEST['status'])
$nav->setActiveSubMenu(-1);
//set refresh rate if the user has it configured
if(!$_POST && $_REQUEST['a']!='search' && ($min=$thisstaff->getRefreshRate()))
define('AUTO_REFRESH', $min*60);
} }
require_once(STAFFINC_DIR.'header.inc.php'); require_once(STAFFINC_DIR.'header.inc.php');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment