From 75470c72428c8d8f278d160369558ab31b137fb1 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Thu, 8 Sep 2016 22:33:16 -0400 Subject: Apply column restrictions to the board --- app/Formatter/BoardTaskFormatter.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'app/Formatter') 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; } -- cgit v1.2.3