* [perf story #69159] Adjust for create children task.
This commit is contained in:
@@ -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;
|
||||
|
||||
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user