summaryrefslogtreecommitdiff
path: root/app/Formatter/TaskListFormatter.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2017-02-26 19:30:02 -0500
committerFrederic Guillot <fred@kanboard.net>2017-02-26 19:30:02 -0500
commitf3deb6492a74f1ffa9e3391274e0ab7947a04016 (patch)
treecbf7a3563cf1543bd131dd114f8dc89afdf5328f /app/Formatter/TaskListFormatter.php
parent4f325193be4f16a9658258fecd525e71917156a0 (diff)
Add toggle button to show/hide subtasks in task list view
Diffstat (limited to 'app/Formatter/TaskListFormatter.php')
-rw-r--r--app/Formatter/TaskListFormatter.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Formatter/TaskListFormatter.php b/app/Formatter/TaskListFormatter.php
index 01fbbae0..2f83469d 100644
--- a/app/Formatter/TaskListFormatter.php
+++ b/app/Formatter/TaskListFormatter.php
@@ -16,13 +16,13 @@ class TaskListFormatter extends BaseFormatter implements FormatterInterface
* Apply formatter
*
* @access public
- * @return mixed
+ * @return array
*/
public function format()
{
$tasks = $this->query->findAll();
$taskIds = array_column($tasks, 'id');
- $tags = $this->taskTagModel->getTagsByTasks($taskIds);
+ $tags = $this->taskTagModel->getTagsByTaskIds($taskIds);
array_merge_relation($tasks, $tags, 'tags', 'id');
return $tasks;