Fix SubtaskRestrictionController modal misbehaviour on link

When the icon was clicked, the modal wasn't shown. Instead, its html content was open as the whole page.
This commit is contained in:
Rafael de Camargo 2019-10-14 09:43:57 -03:00 committed by Frédéric Guillot
parent 9f1419ee6b
commit 9bd7ae9515
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ class SubtaskHelper extends Base
public function renderTitle(array $subtask)
{
if ($subtask['status'] == 0) {
$html = '<i class="fa fa-square-o fa-fw"></i>';
$html = '<i class="fa fa-square-o fa-fw ' . ($this->hasSubtaskInProgress() ? 'js-modal-confirm' : '') . '"></i>';
} elseif ($subtask['status'] == 1) {
$html = '<i class="fa fa-gears fa-fw"></i>';
} else {