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

search: Ensure search on ticket number honors visibility

parent ba348abc
Branches
Tags
No related merge requests found
...@@ -61,6 +61,7 @@ class TicketsAjaxAPI extends AjaxController { ...@@ -61,6 +61,7 @@ class TicketsAjaxAPI extends AjaxController {
'tickets' => new SqlCode('1'), 'tickets' => new SqlCode('1'),
'__relevance__' => new SqlCode(1) '__relevance__' => new SqlCode(1)
)) ))
->filter($visibility)
->filter(array('number__startswith' => $q)) ->filter(array('number__startswith' => $q))
->limit($limit) ->limit($limit)
->union($hits); ->union($hits);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment