From ba348abcaf45ae6ddecac5d0d284e31ebe305604 Mon Sep 17 00:00:00 2001 From: Jared Hancock <jared@osticket.com> Date: Fri, 25 Sep 2015 13:30:14 -0500 Subject: [PATCH] search: Assume typeahead click is either email or ticket number --- include/staff/tickets.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/staff/tickets.inc.php b/include/staff/tickets.inc.php index cf19f45a3..200a13448 100644 --- a/include/staff/tickets.inc.php +++ b/include/staff/tickets.inc.php @@ -87,7 +87,7 @@ case 'search': 'user__emails__address' => $_REQUEST['query'], )); } - elseif (is_numeric($_REQUEST['query'])) { + elseif ($_REQUEST['query']) { $tickets = $tickets->filter(array( 'number' => $_REQUEST['query'], )); -- GitLab