summaryrefslogtreecommitdiff
path: root/app/Formatter/BoardSwimlaneFormatter.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Formatter/BoardSwimlaneFormatter.php')
-rw-r--r--app/Formatter/BoardSwimlaneFormatter.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/Formatter/BoardSwimlaneFormatter.php b/app/Formatter/BoardSwimlaneFormatter.php
index 18db259d..17710fc3 100644
--- a/app/Formatter/BoardSwimlaneFormatter.php
+++ b/app/Formatter/BoardSwimlaneFormatter.php
@@ -97,6 +97,13 @@ class BoardSwimlaneFormatter extends BaseFormatter implements FormatterInterface
$this->calculateStatsByColumnAcrossSwimlanes($swimlane['columns']);
}
+ foreach($this->swimlanes as &$swimlane) {
+ foreach($swimlane['columns'] as $columnIndex => &$column) {
+ $column['column_nb_tasks'] = $this->swimlanes[0]['columns'][$columnIndex]['column_nb_tasks'];
+ $column['column_nb_score'] = $this->swimlanes[0]['columns'][$columnIndex]['column_score'];
+ }
+ }
+
return $this->swimlanes;
}