diff options
author | Cyboulette <cyboulette58@gmail.com> | 2019-01-19 22:38:50 +0100 |
---|---|---|
committer | fguillot <fred@kanboard.net> | 2019-01-19 13:38:50 -0800 |
commit | cc34318bc79403421be582c15186eb4d523013a1 (patch) | |
tree | e08a19bf07b8d758c745a2ebbdf6bf7792256c75 /app | |
parent | f3b944c77f54e988de250acf30239010bdfa2399 (diff) |
Fix PHP error in task views (tag colors)
Diffstat (limited to 'app')
-rw-r--r-- | app/Controller/ActivityController.php | 2 | ||||
-rw-r--r-- | app/Controller/TaskViewController.php | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/app/Controller/ActivityController.php b/app/Controller/ActivityController.php index 7a58e670..5db02529 100644 --- a/app/Controller/ActivityController.php +++ b/app/Controller/ActivityController.php @@ -56,7 +56,7 @@ class ActivityController extends BaseController 'task' => $task, 'project' => $this->projectModel->getById($task['project_id']), 'events' => $this->helper->projectActivity->getTaskEvents($task['id']), - 'tags' => $this->taskTagModel->getList($task['id']), + 'tags' => $this->taskTagModel->getTagsByTask($task['id']), ))); } } diff --git a/app/Controller/TaskViewController.php b/app/Controller/TaskViewController.php index 9a39a3a9..05c59bc9 100644 --- a/app/Controller/TaskViewController.php +++ b/app/Controller/TaskViewController.php @@ -45,7 +45,7 @@ class TaskViewController extends BaseController 'task' => $task, 'columns_list' => $this->columnModel->getList($task['project_id']), 'colors_list' => $this->colorModel->getList(), - 'tags' => $this->taskTagModel->getList($task['id']), + 'tags' => $this->taskTagModel->getTagsByTask($task['id']), 'title' => $task['title'], 'no_layout' => true, 'auto_refresh' => true, @@ -93,7 +93,7 @@ class TaskViewController extends BaseController 'lead_time' => $this->taskAnalyticModel->getLeadTime($task), 'cycle_time' => $this->taskAnalyticModel->getCycleTime($task), 'time_spent_columns' => $this->taskAnalyticModel->getTimeSpentByColumn($task), - 'tags' => $this->taskTagModel->getList($task['id']), + 'tags' => $this->taskTagModel->getTagsByTask($task['id']), ))); } @@ -118,7 +118,7 @@ class TaskViewController extends BaseController 'task' => $task, 'project' => $this->projectModel->getById($task['project_id']), 'subtask_paginator' => $subtask_paginator, - 'tags' => $this->taskTagModel->getList($task['id']), + 'tags' => $this->taskTagModel->getTagsByTask($task['id']), ))); } @@ -135,7 +135,7 @@ class TaskViewController extends BaseController 'task' => $task, 'project' => $this->projectModel->getById($task['project_id']), 'transitions' => $this->transitionModel->getAllByTask($task['id']), - 'tags' => $this->taskTagModel->getList($task['id']), + 'tags' => $this->taskTagModel->getTagsByTask($task['id']), ))); } } |