summaryrefslogtreecommitdiff
path: root/app/Controller/GroupListController.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Controller/GroupListController.php')
-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();