summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2017-04-08 18:24:07 -0400
committerFrederic Guillot <fred@kanboard.net>2017-04-08 18:24:07 -0400
commit13129699bab220d3f1eae10cbfdb67ad99b4548f (patch)
treeed6a741005967628cb1eed04e3825e25e4ba8271
parenta9aed917dd28717696f9f68905338108fb015342 (diff)
Use user variable instead of current session
-rw-r--r--app/Controller/DashboardController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Controller/DashboardController.php b/app/Controller/DashboardController.php
index 0ff6f20e..6758381e 100644
--- a/app/Controller/DashboardController.php
+++ b/app/Controller/DashboardController.php
@@ -56,7 +56,7 @@ class DashboardController extends BaseController
'title' => t('Subtasks overview for %s', $this->helper->user->getFullname($user)),
'paginator' => $this->subtaskPagination->getDashboardPaginator($user['id']),
'user' => $user,
- 'nb_subtasks' => $this->subtaskModel->countByAssigneeAndTaskStatus($this->userSession->getId()),
+ 'nb_subtasks' => $this->subtaskModel->countByAssigneeAndTaskStatus($user['id']),
)));
}