diff options
Diffstat (limited to 'app/Pagination')
-rw-r--r-- | app/Pagination/SubtaskPagination.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/Pagination/SubtaskPagination.php b/app/Pagination/SubtaskPagination.php index 83593b5e..51a99a8d 100644 --- a/app/Pagination/SubtaskPagination.php +++ b/app/Pagination/SubtaskPagination.php @@ -23,13 +23,16 @@ class SubtaskPagination extends Base */ public function getDashboardPaginator($userId) { + $query = $this->taskFinderModel->getUserQuery($userId); + $this->hook->reference('pagination:dashboard:subtask:query', $query); + return $this->paginator ->setUrl('DashboardController', 'subtasks', array('user_id' => $userId)) ->setMax(50) ->setOrder(TaskModel::TABLE.'.priority') ->setDirection('DESC') ->setFormatter($this->taskListSubtaskAssigneeFormatter->withUserId($userId)->withoutEmptyTasks()) - ->setQuery($this->taskFinderModel->getUserQuery($userId)) + ->setQuery($query) ->calculate(); } } |