summaryrefslogtreecommitdiff
path: root/app/Formatter/BoardTaskFormatter.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Formatter/BoardTaskFormatter.php')
-rw-r--r--app/Formatter/BoardTaskFormatter.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/Formatter/BoardTaskFormatter.php b/app/Formatter/BoardTaskFormatter.php
index 3bf171b1..5956ae35 100644
--- a/app/Formatter/BoardTaskFormatter.php
+++ b/app/Formatter/BoardTaskFormatter.php
@@ -79,6 +79,11 @@ class BoardTaskFormatter extends BaseFormatter implements FormatterInterface
{
$tasks = array_values(array_filter($this->tasks, array($this, 'filterTasks')));
array_merge_relation($tasks, $this->tags, 'tags', 'id');
+
+ foreach ($tasks as &$task) {
+ $task['is_draggable'] = $this->helper->board->isDraggable($task);
+ }
+
return $tasks;
}