* [perf story #69159] Adjust for create children task.

This commit is contained in:
wangyidong
2024-11-06 17:04:02 +08:00
committed by 孙广明
parent 83cf2e2838
commit 00de6ea8d8
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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
View File
@@ -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);