diff options
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'); } } |