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
No related branches found
No related tags found
No related merge requests found
......@@ -29,7 +29,7 @@ class TicketsAjaxAPI extends AjaxController {
$WHERE=' WHERE ticketID LIKE \''.db_input($_REQUEST['q'], false).'%\'';
$ticketid=true;
} 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 {
Http::response(400, 'Query argument is required');
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment