summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorCoRex <dev@corex.dk>2017-12-02 13:55:42 +0100
committerfguillot <fred@kanboard.net>2017-12-04 10:36:26 -0800
commit45610baa47ec90a68cfdbb135c04e9fbc486d32f (patch)
tree0b81ed3fcd8a70ed1e1da71be585e4c69fb44270 /app
parentd5145925a0a284ba7a7556a7629932b9fc71c68f (diff)
Added 'pagination:dashboard:subtask:query' to SubtaskPagination.
Diffstat (limited to 'app')
-rw-r--r--app/Pagination/SubtaskPagination.php5
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();
}
}