diff options
author | phecho <phecho@163.com> | 2016-12-21 10:58:41 +0800 |
---|---|---|
committer | phecho <phecho@163.com> | 2016-12-21 10:58:41 +0800 |
commit | 4724367e3b9c10af23bb6596f8f678477927c8c3 (patch) | |
tree | 06ee4e860252222c1784e182d87e22b879451751 /app/Controller/GroupAjaxController.php | |
parent | 56d00ac1592ba5ab7006dfd161f1893e1fdc9bb0 (diff) | |
parent | 9d5d389de841705450190fb1ebbaa11393870dfe (diff) |
Fix conflict
Diffstat (limited to 'app/Controller/GroupAjaxController.php')
-rw-r--r-- | app/Controller/GroupAjaxController.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/app/Controller/GroupAjaxController.php b/app/Controller/GroupAjaxController.php index 496e9ef2..308bba9e 100644 --- a/app/Controller/GroupAjaxController.php +++ b/app/Controller/GroupAjaxController.php @@ -2,8 +2,6 @@ namespace Kanboard\Controller; -use Kanboard\Formatter\GroupAutoCompleteFormatter; - /** * Group Ajax Controller * @@ -20,7 +18,7 @@ class GroupAjaxController extends BaseController public function autocomplete() { $search = $this->request->getStringParam('term'); - $formatter = new GroupAutoCompleteFormatter($this->groupManager->find($search)); - $this->response->json($formatter->format()); + $groups = $this->groupManager->find($search); + $this->response->json($this->groupAutoCompleteFormatter->withGroups($groups)->format()); } } |