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