Add formatters

This commit is contained in:
Frederic Guillot
2015-09-20 22:18:56 -04:00
parent f579663adc
commit 689687dd4e
20 changed files with 651 additions and 377 deletions

View File

@@ -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());
}
}