diff --git a/app/Formatter/BoardSwimlaneFormatter.php b/app/Formatter/BoardSwimlaneFormatter.php index 18db259d6..17710fc33 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; } diff --git a/app/Template/board/table_column.php b/app/Template/board/table_column.php index a9652a2b9..f63438c30 100644 --- a/app/Template/board/table_column.php +++ b/app/Template/board/table_column.php @@ -19,11 +19,10 @@ = $this->task->getNewBoardTaskButton($swimlane, $column) ?> - 1 && ! empty($column['column_nb_tasks'])): ?> - - (= $column['column_nb_tasks'] ?>) - - + + + (= $column['nb_tasks'] ?>) + @@ -75,16 +74,17 @@ - - - (= $column['nb_tasks'] ?>/= $this->text->e($column['task_limit']) ?>) - - - - (= $column['nb_tasks'] ?>) - - - = $this->hook->render('template:board:column:header', array('swimlane' => $swimlane, 'column' => $column)) ?> + + + ( + = $column['column_nb_tasks'] ?> + + /= $this->text->e($column['task_limit']) ?> + + ) + + + = $this->hook->render('template:board:column:header', array('swimlane' => $swimlane, 'column' => $column)) ?> diff --git a/app/Template/board/table_tasks.php b/app/Template/board/table_tasks.php index 7b38abca7..e7452807c 100644 --- a/app/Template/board/table_tasks.php +++ b/app/Template/board/table_tasks.php @@ -3,7 +3,7 @@