Skip to content
Snippets Groups Projects
Commit 56bad47c authored by Jared Hancock's avatar Jared Hancock
Browse files

Support ownerId in simple search

parent a70018e6
No related branches found
No related tags found
No related merge requests found
...@@ -76,6 +76,11 @@ if($status) { ...@@ -76,6 +76,11 @@ if($status) {
$qwhere.=' AND status='.db_input(strtolower($status)); $qwhere.=' AND status='.db_input(strtolower($status));
} }
if (isset($_REQUEST['ownerId'])) {
$qwhere .= ' AND ticket.user_id='.db_input($_REQUEST['ownerId']);
$qstr .= '&ownerId='.urlencode($_REQUEST['ownerId']);
}
//Queues: Overloaded sub-statuses - you've got to just have faith! //Queues: Overloaded sub-statuses - you've got to just have faith!
if($staffId && ($staffId==$thisstaff->getId())) { //My tickets if($staffId && ($staffId==$thisstaff->getId())) { //My tickets
$results_type='Assigned Tickets'; $results_type='Assigned Tickets';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment