summaryrefslogtreecommitdiff
path: root/app/Formatter/BoardFormatter.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Formatter/BoardFormatter.php')
-rw-r--r--app/Formatter/BoardFormatter.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/Formatter/BoardFormatter.php b/app/Formatter/BoardFormatter.php
index 562a97bc..350dde6c 100644
--- a/app/Formatter/BoardFormatter.php
+++ b/app/Formatter/BoardFormatter.php
@@ -44,12 +44,14 @@ class BoardFormatter extends BaseFormatter implements FormatterInterface
{
$swimlanes = $this->swimlaneModel->getSwimlanes($this->projectId);
$columns = $this->columnModel->getAll($this->projectId);
-
$tasks = $this->query
->eq(TaskModel::TABLE.'.project_id', $this->projectId)
->asc(TaskModel::TABLE.'.position')
->findAll();
+ $task_ids = array_column($tasks, 'id');
+ $tags = $this->taskTagModel->getTagsByTasks($task_ids);
+
if (empty($swimlanes) || empty($columns)) {
return array();
}
@@ -58,6 +60,7 @@ class BoardFormatter extends BaseFormatter implements FormatterInterface
->withSwimlanes($swimlanes)
->withColumns($columns)
->withTasks($tasks)
+ ->withTags($tags)
->format();
}
}