diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-09-20 22:18:56 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-09-20 22:18:56 -0400 |
commit | 689687dd4ee186cb9cf5d0230b4648e242c53b10 (patch) | |
tree | 3d26bc2079c6eb45790ba604b3a79997be4768ab /app/Controller/App.php | |
parent | f579663adcbc0b202d9a068d734e8f9284dc3a37 (diff) |
Add formatters
Diffstat (limited to 'app/Controller/App.php')
-rw-r--r-- | app/Controller/App.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Controller/App.php b/app/Controller/App.php index fe1e648c..41be4608 100644 --- a/app/Controller/App.php +++ b/app/Controller/App.php @@ -213,7 +213,7 @@ class App extends Base { $search = $this->request->getStringParam('term'); - $filter = $this->taskFilter + $filter = $this->taskFilterAutoCompleteFormatter ->create() ->filterByProjects($this->projectPermission->getActiveMemberProjectIds($this->userSession->getId())) ->excludeTasks(array($this->request->getIntegerParam('exclude_task_id'))); @@ -226,6 +226,6 @@ class App extends Base $filter->filterByTitle($search); } - $this->response->json($filter->toAutoCompletion()); + $this->response->json($filter->format()); } } |