summaryrefslogtreecommitdiff
path: root/app/Controller
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2017-03-11 17:30:09 -0500
committerFrederic Guillot <fred@kanboard.net>2017-03-11 17:30:09 -0500
commitd1edac845ce81f8ccf43a43803ab0a89574f285c (patch)
tree5732aff4223edcb34813b1afbcd09504dc9d26c0 /app/Controller
parenta22b8f3dc73555800caf55768f04a7a2ce4af7f2 (diff)
Change groups list layout
Diffstat (limited to 'app/Controller')
-rw-r--r--app/Controller/GroupListController.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/app/Controller/GroupListController.php b/app/Controller/GroupListController.php
index 4486bbff..11081e4a 100644
--- a/app/Controller/GroupListController.php
+++ b/app/Controller/GroupListController.php
@@ -2,6 +2,9 @@
namespace Kanboard\Controller;
+use Kanboard\Model\GroupModel;
+use Kanboard\Model\UserModel;
+
/**
* Group Controller
*
@@ -20,7 +23,7 @@ class GroupListController extends BaseController
$paginator = $this->paginator
->setUrl('GroupListController', 'index')
->setMax(30)
- ->setOrder('name')
+ ->setOrder(GroupModel::TABLE.'.name')
->setQuery($this->groupModel->getQuery())
->calculate();
@@ -43,7 +46,7 @@ class GroupListController extends BaseController
$paginator = $this->paginator
->setUrl('GroupListController', 'users', array('group_id' => $group_id))
->setMax(30)
- ->setOrder('username')
+ ->setOrder(UserModel::TABLE.'.username')
->setQuery($this->groupMemberModel->getQuery($group_id))
->calculate();