summaryrefslogtreecommitdiff
path: root/app/Formatter
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-08-28 22:30:48 -0400
committerFrederic Guillot <fred@kanboard.net>2016-08-28 22:30:48 -0400
commit08bdb708e7698c21b0e6fc9f21d19996fc3d593d (patch)
treeb7ab229dfd1568bb9435e40b20c77aa783eefcc2 /app/Formatter
parentb51c693cda1cfbda115e315de58b15c0ef275972 (diff)
Add the possibility to move tasks without drag and drop
Diffstat (limited to 'app/Formatter')
-rw-r--r--app/Formatter/BoardColumnFormatter.php1
-rw-r--r--app/Formatter/BoardSwimlaneFormatter.php1
2 files changed, 2 insertions, 0 deletions
diff --git a/app/Formatter/BoardColumnFormatter.php b/app/Formatter/BoardColumnFormatter.php
index d49a577a..85d31b5c 100644
--- a/app/Formatter/BoardColumnFormatter.php
+++ b/app/Formatter/BoardColumnFormatter.php
@@ -78,6 +78,7 @@ class BoardColumnFormatter extends BaseFormatter implements FormatterInterface
public function format()
{
foreach ($this->columns as &$column) {
+ $column['id'] = (int) $column['id'];
$column['tasks'] = BoardTaskFormatter::getInstance($this->container)
->withTasks($this->tasks)
->withTags($this->tags)
diff --git a/app/Formatter/BoardSwimlaneFormatter.php b/app/Formatter/BoardSwimlaneFormatter.php
index c2abb444..9b2ad935 100644
--- a/app/Formatter/BoardSwimlaneFormatter.php
+++ b/app/Formatter/BoardSwimlaneFormatter.php
@@ -81,6 +81,7 @@ class BoardSwimlaneFormatter extends BaseFormatter implements FormatterInterface
$nb_columns = count($this->columns);
foreach ($this->swimlanes as &$swimlane) {
+ $swimlane['id'] = (int) $swimlane['id'];
$swimlane['columns'] = BoardColumnFormatter::getInstance($this->container)
->withSwimlaneId($swimlane['id'])
->withColumns($this->columns)