diff options
author | CoRex <dev@corex.dk> | 2017-12-02 01:00:57 +0100 |
---|---|---|
committer | fguillot <fred@kanboard.net> | 2017-12-04 10:35:53 -0800 |
commit | d5145925a0a284ba7a7556a7629932b9fc71c68f (patch) | |
tree | 55c2142623280c1c012512825926eedb198eb076 /app | |
parent | 7da4c943b86fcd56bc7f5940ce0753539d3432df (diff) |
Added 'pagination:dashboard:project:query' to ProjectPagination.
Diffstat (limited to 'app')
-rw-r--r-- | app/Pagination/ProjectPagination.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/Pagination/ProjectPagination.php b/app/Pagination/ProjectPagination.php index 8f1fa87c..563998f2 100644 --- a/app/Pagination/ProjectPagination.php +++ b/app/Pagination/ProjectPagination.php @@ -25,11 +25,14 @@ class ProjectPagination extends Base */ public function getDashboardPaginator($user_id, $method, $max) { + $query = $this->projectModel->getQueryColumnStats($this->projectPermissionModel->getActiveProjectIds($user_id)); + $this->hook->reference('pagination:dashboard:project:query', $query); + return $this->paginator ->setUrl('DashboardController', $method, array('pagination' => 'projects', 'user_id' => $user_id)) ->setMax($max) ->setOrder(ProjectModel::TABLE.'.name') - ->setQuery($this->projectModel->getQueryColumnStats($this->projectPermissionModel->getActiveProjectIds($user_id))) + ->setQuery($query) ->calculateOnlyIf($this->request->getStringParam('pagination') === 'projects'); } } |