summaryrefslogtreecommitdiff
path: root/app/Controller/ProjectOverviewController.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Controller/ProjectOverviewController.php')
-rw-r--r--app/Controller/ProjectOverviewController.php17
1 files changed, 9 insertions, 8 deletions
diff --git a/app/Controller/ProjectOverviewController.php b/app/Controller/ProjectOverviewController.php
index eb002936..33bec078 100644
--- a/app/Controller/ProjectOverviewController.php
+++ b/app/Controller/ProjectOverviewController.php
@@ -16,17 +16,18 @@ class ProjectOverviewController extends BaseController
public function show()
{
$project = $this->getProject();
- $this->projectModel->getColumnStats($project);
+ $columns = $this->columnModel->getAllWithTasksCount($project['id']);
$this->response->html($this->helper->layout->app('project_overview/show', array(
- 'project' => $project,
- 'title' => $project['name'],
+ 'project' => $project,
+ 'columns' => $columns,
+ 'title' => $project['name'],
'description' => $this->helper->projectHeader->getDescription($project),
- 'users' => $this->projectUserRoleModel->getAllUsersGroupedByRole($project['id']),
- 'roles' => $this->projectRoleModel->getList($project['id']),
- 'events' => $this->helper->projectActivity->getProjectEvents($project['id'], 10),
- 'images' => $this->projectFileModel->getAllImages($project['id']),
- 'files' => $this->projectFileModel->getAllDocuments($project['id']),
+ 'users' => $this->projectUserRoleModel->getAllUsersGroupedByRole($project['id']),
+ 'roles' => $this->projectRoleModel->getList($project['id']),
+ 'events' => $this->helper->projectActivity->getProjectEvents($project['id'], 10),
+ 'images' => $this->projectFileModel->getAllImages($project['id']),
+ 'files' => $this->projectFileModel->getAllDocuments($project['id']),
)));
}
}