diff options
author | CoRex <dev@corex.dk> | 2017-12-02 13:55:42 +0100 |
---|---|---|
committer | fguillot <fred@kanboard.net> | 2017-12-04 10:36:26 -0800 |
commit | 45610baa47ec90a68cfdbb135c04e9fbc486d32f (patch) | |
tree | 0b81ed3fcd8a70ed1e1da71be585e4c69fb44270 /app | |
parent | d5145925a0a284ba7a7556a7629932b9fc71c68f (diff) |
Added 'pagination:dashboard:subtask:query' to SubtaskPagination.
Diffstat (limited to 'app')
-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(); } } |