summaryrefslogtreecommitdiff
path: root/app/Controller
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-06-24 15:43:34 -0400
committerFrederic Guillot <fred@kanboard.net>2016-06-24 15:43:34 -0400
commit18cb7ad0a4a96be63030f5207b74a195c8b6cd6c (patch)
tree719898528a9df56f6d8ea4abaee54b9542e3d434 /app/Controller
parentb2e92480c29acb15586bc8ea305c8416927a667c (diff)
Expose tags to the user interface (first prototype)
Diffstat (limited to 'app/Controller')
-rw-r--r--app/Controller/TaskModificationController.php1
-rw-r--r--app/Controller/TaskViewController.php2
2 files changed, 3 insertions, 0 deletions
diff --git a/app/Controller/TaskModificationController.php b/app/Controller/TaskModificationController.php
index f9c63c12..d55a7193 100644
--- a/app/Controller/TaskModificationController.php
+++ b/app/Controller/TaskModificationController.php
@@ -98,6 +98,7 @@ class TaskModificationController extends BaseController
'values' => $values,
'errors' => $errors,
'task' => $task,
+ 'tags' => $this->taskTagModel->getList($task['id']),
'users_list' => $this->projectUserRoleModel->getAssignableUsersList($task['project_id']),
'colors_list' => $this->colorModel->getList(),
'categories_list' => $this->categoryModel->getList($task['project_id']),
diff --git a/app/Controller/TaskViewController.php b/app/Controller/TaskViewController.php
index bd1e86ae..f40f8bea 100644
--- a/app/Controller/TaskViewController.php
+++ b/app/Controller/TaskViewController.php
@@ -45,6 +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']),
'title' => $task['title'],
'no_layout' => true,
'auto_refresh' => true,
@@ -82,6 +83,7 @@ class TaskViewController extends BaseController
'internal_links' => $this->taskLinkModel->getAllGroupedByLabel($task['id']),
'external_links' => $this->taskExternalLinkModel->getAll($task['id']),
'link_label_list' => $this->linkModel->getList(0, false),
+ 'tags' => $this->taskTagModel->getList($task['id']),
)));
}