Hide one task count when there is only one swimlane

Don't show two task counts per column when there is only one swimlane. 
Fixes #4208
This commit is contained in:
Rafael de Camargo 2019-06-19 01:37:09 -03:00 committed by fguillot
parent 9ac752a606
commit 91ae1feaa1
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@
<?= $this->task->getNewBoardTaskButton($swimlane, $column) ?>
<?php endif ?>
<?php if ($column['nb_tasks'] > 0): ?>
<?php if ($swimlane['nb_swimlanes'] > 1 && $column['nb_tasks'] > 0): ?>
<span title="<?= t('Task count') ?>">
(<span id="task-number-column-<?= $column['id'] ?>"><?= $column['nb_tasks'] ?></span>)
</span>