From d5145925a0a284ba7a7556a7629932b9fc71c68f Mon Sep 17 00:00:00 2001 From: CoRex Date: Sat, 2 Dec 2017 01:00:57 +0100 Subject: Added 'pagination:dashboard:project:query' to ProjectPagination. --- app/Pagination/ProjectPagination.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'app') 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'); } } -- cgit v1.2.3