The task limit should consider all open tasks (not only filtered tasks)

Fixes #4291
This commit is contained in:
Timo
2019-10-02 05:33:45 +02:00
committed by Frédéric Guillot
parent 91194776cf
commit 219c933832
4 changed files with 8 additions and 6 deletions

View File

@@ -99,12 +99,12 @@
<?php endif ?>
</span>
<?php if (! empty($column['column_nb_tasks'])): ?>
<?php if (! empty($column['column_nb_open_tasks'])): ?>
<span title="<?= t('Total number of tasks in this column across all swimlanes') ?>" class="board-column-header-task-count">
<?php if ($column['task_limit'] > 0): ?>
(<span><?= $column['column_nb_tasks'] ?></span> / <span title="<?= t('Task limit') ?>"><?= $this->text->e($column['task_limit']) ?></span>)
(<span><?= $column['column_nb_open_tasks'] ?></span> / <span title="<?= t('Task limit') ?>"><?= $this->text->e($column['task_limit']) ?></span>)
<?php else: ?>
(<span><?= $column['column_nb_tasks'] ?></span>)
(<span><?= $column['column_nb_open_tasks'] ?></span>)
<?php endif ?>
</span>
<?php endif ?>