diff options
Diffstat (limited to 'app/Model/Project.php')
-rw-r--r-- | app/Model/Project.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Model/Project.php b/app/Model/Project.php index b60ba567..ad0afa82 100644 --- a/app/Model/Project.php +++ b/app/Model/Project.php @@ -196,12 +196,12 @@ class Project extends Base $stats['nb_active_tasks'] = 0; foreach ($columns as &$column) { - $column['nb_active_tasks'] = $this->task->countByColumnId($project_id, $column['id']); + $column['nb_active_tasks'] = $this->taskFinder->countByColumnId($project_id, $column['id']); $stats['nb_active_tasks'] += $column['nb_active_tasks']; } $stats['columns'] = $columns; - $stats['nb_tasks'] = $this->task->countByProjectId($project_id); + $stats['nb_tasks'] = $this->taskFinder->countByProjectId($project_id); $stats['nb_inactive_tasks'] = $stats['nb_tasks'] - $stats['nb_active_tasks']; return $stats; |