summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/Pagination/DashboardPagination.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/Pagination/DashboardPagination.php b/app/Pagination/DashboardPagination.php
index b8fc4434..0149a42b 100644
--- a/app/Pagination/DashboardPagination.php
+++ b/app/Pagination/DashboardPagination.php
@@ -27,13 +27,17 @@ class DashboardPagination extends Base
$projects = $this->projectUserRoleModel->getActiveProjectsByUser($userId);
foreach ($projects as $projectId => $projectName) {
+
+ $query = $this->taskFinderModel->getUserQuery($userId)->eq(ProjectModel::TABLE.'.id', $projectId);
+ $this->hook->reference('pagination:dashboard:task:query', $query);
+
$paginator = $this->paginator
->setUrl('DashboardController', 'show', array('user_id' => $userId))
->setMax(50)
->setOrder(TaskModel::TABLE.'.priority')
->setDirection('DESC')
->setFormatter($this->taskListSubtaskAssigneeFormatter->withUserId($userId))
- ->setQuery($this->taskFinderModel->getUserQuery($userId)->eq(ProjectModel::TABLE.'.id', $projectId))
+ ->setQuery($query)
->calculate();
if ($paginator->getTotal() > 0) {