summaryrefslogtreecommitdiff
path: root/app/Controller/GroupAjaxController.php
diff options
context:
space:
mode:
authorphecho <phecho@163.com>2016-12-21 10:58:41 +0800
committerphecho <phecho@163.com>2016-12-21 10:58:41 +0800
commit4724367e3b9c10af23bb6596f8f678477927c8c3 (patch)
tree06ee4e860252222c1784e182d87e22b879451751 /app/Controller/GroupAjaxController.php
parent56d00ac1592ba5ab7006dfd161f1893e1fdc9bb0 (diff)
parent9d5d389de841705450190fb1ebbaa11393870dfe (diff)
Fix conflict
Diffstat (limited to 'app/Controller/GroupAjaxController.php')
-rw-r--r--app/Controller/GroupAjaxController.php6
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());
}
}