diff --git a/module/task/model.php b/module/task/model.php index 0ce31f3407..167463a0cf 100755 --- a/module/task/model.php +++ b/module/task/model.php @@ -280,7 +280,7 @@ class taskModel extends model $parentID = (int)$oldParentTask->id; /* When a normal task is consumed, create the subtask and update the parent task status. */ - if($oldParentTask->parent == 0 && $oldParentTask->consumed > 0) + if($oldParentTask->isParent == 0 && $oldParentTask->consumed > 0) { $this->taskTao->copyTaskData($oldParentTask); if(dao::isError()) return false; diff --git a/module/task/zen.php b/module/task/zen.php index 03b119267d..de1393f84f 100644 --- a/module/task/zen.php +++ b/module/task/zen.php @@ -412,7 +412,7 @@ class taskZen extends task $this->view->stories = array_filter($stories); $this->view->storyTasks = $this->task->getStoryTaskCounts(array_keys($stories), $execution->id); $this->view->members = $this->loadModel('user')->getTeamMemberPairs($execution->id, 'execution', 'nodeleted'); - $this->view->taskConsumed = isset($task) && $task->parent == 0 ? $task->consumed : 0; + $this->view->taskConsumed = isset($task) && $task->isParent == 0 ? $task->consumed : 0; $this->view->customFields = $customFields; $this->view->checkedFields = $checkedFields; $this->view->hideStory = $this->task->isNoStoryExecution($execution);