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

Add ability to search by domain

parent 8f995295
Branches
Tags
No related merge requests found
...@@ -29,7 +29,7 @@ class TicketsAjaxAPI extends AjaxController { ...@@ -29,7 +29,7 @@ class TicketsAjaxAPI extends AjaxController {
$WHERE=' WHERE ticketID LIKE \''.db_input($_REQUEST['q'], false).'%\''; $WHERE=' WHERE ticketID LIKE \''.db_input($_REQUEST['q'], false).'%\'';
$ticketid=true; $ticketid=true;
} elseif(isset($_REQUEST['q'])) { } elseif(isset($_REQUEST['q'])) {
$WHERE=' WHERE email LIKE \''.db_input(strtolower($_REQUEST['q']), false).'%\''; $WHERE=' WHERE email LIKE \'%'.db_input(strtolower($_REQUEST['q']), false).'%\'';
} else { } else {
Http::response(400, 'Query argument is required'); Http::response(400, 'Query argument is required');
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment