diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-11-11 21:52:22 -0500 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-11-11 21:52:22 -0500 |
commit | 5ca9a12a0ac64dccded3f8ebae16c00f91a49455 (patch) | |
tree | 78b450fd849a9a0ddaa3ecc181fc1b8e3a27ada0 /app/Controller | |
parent | 7a5b78dbc6c3ad896bd07ad19aa8c9cb8fec11ac (diff) |
Add subtasks to the dashboard
Diffstat (limited to 'app/Controller')
-rw-r--r-- | app/Controller/App.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/Controller/App.php b/app/Controller/App.php index 9f8ded19..993149c5 100644 --- a/app/Controller/App.php +++ b/app/Controller/App.php @@ -3,6 +3,7 @@ namespace Controller; use Model\Project as ProjectModel; +use Model\SubTask; /** * Application controller @@ -27,6 +28,7 @@ class App extends Base 'board_selector' => $this->projectPermission->getAllowedProjects($user_id), 'events' => $this->projectActivity->getProjects($project_ids, 10), 'tasks' => $this->taskFinder->getAllTasksByUser($user_id), + 'subtasks' => $this->subTask->getAllByUser($user_id, array(SubTask::STATUS_TODO, SubTask::STATUS_INPROGRESS)), 'projects' => $this->project->getSummary($project_ids), 'title' => t('Dashboard'), ))); |