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

Merge pull request #35 from greezybacon/issue/owner-search


Support ownerId in simple search

Reviewed-By: default avatarPeter Rotich <peter@osticket.com>
parents d8012dcd 56bad47c
Branches
Tags
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