Fix regression for subtask restriction

This commit is contained in:
Frederic Guillot
2015-12-12 16:52:12 -05:00
parent b834f5475c
commit dc40675f37
3 changed files with 2 additions and 3 deletions

View File

@@ -25,7 +25,7 @@ class Subtask extends \Kanboard\Core\Base
return trim($this->template->render('subtask/icons', array('subtask' => $subtask))) . $this->helper->e($subtask['title']);
}
if ($subtask['status'] == 0 && isset($this->sessionStorage->hasSubtaskInProgress) && $this->sessionStorage->hasSubtaskInProgress === true) {
if ($subtask['status'] == 0 && isset($this->sessionStorage->hasSubtaskInProgress) && $this->sessionStorage->hasSubtaskInProgress) {
return $this->helper->url->link(
trim($this->template->render('subtask/icons', array('subtask' => $subtask))) . $this->helper->e($subtask['title']),
'subtask',