diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-08-13 14:23:53 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-08-13 14:23:53 -0400 |
commit | 4ffaba2ba0dd6b5810adea1916080c3b645f3d29 (patch) | |
tree | 7c216830af0f97b0c0908d63be83698cabba3922 /app/Pagination/TaskPagination.php | |
parent | 29820bf83b7ee18b5f48990ce0188a9c041c3473 (diff) |
Add reference hooks
Diffstat (limited to 'app/Pagination/TaskPagination.php')
-rw-r--r-- | app/Pagination/TaskPagination.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/Pagination/TaskPagination.php b/app/Pagination/TaskPagination.php index a395ab84..5fe986e7 100644 --- a/app/Pagination/TaskPagination.php +++ b/app/Pagination/TaskPagination.php @@ -25,11 +25,14 @@ class TaskPagination extends Base */ public function getDashboardPaginator($user_id, $method, $max) { + $query = $this->taskFinderModel->getUserQuery($user_id); + $this->hook->reference('pagination:dashboard:task:query', $query); + return $this->paginator ->setUrl('DashboardController', $method, array('pagination' => 'tasks', 'user_id' => $user_id)) ->setMax($max) ->setOrder(TaskModel::TABLE.'.id') - ->setQuery($this->taskFinderModel->getUserQuery($user_id)) + ->setQuery($query) ->calculateOnlyIf($this->request->getStringParam('pagination') === 'tasks'); } } |