* [perf story #69159] show action for auto action.

This commit is contained in:
wangyidong
2024-11-07 10:40:53 +08:00
committed by 孙广明
parent 6986810bcd
commit fcb0e66e05
7 changed files with 50 additions and 13 deletions
+3 -3
View File
@@ -3282,7 +3282,7 @@ class taskModel extends model
if($parentTask->story) $this->story->setStage($parentTask->story);
/* Create action record. */
$this->taskTao->createAutoUpdateTaskAction($parentTask);
$this->taskTao->createAutoUpdateTaskAction($parentTask, 'child');
if($this->config->edition != 'open' && $parentTask->feedback) $this->loadModel('feedback')->updateStatus('task', $parentTask->feedback, $status, $parentTask->status);
}
}
@@ -3318,7 +3318,7 @@ class taskModel extends model
if($parentStatus == 'pause' && $childTask->status != 'doing') continue;
if($parentStatus == 'cancel' && in_array($childTask->status, array('done', 'closed'))) continue;
if($parentStatus == 'doing' && $childTask->status != 'pause') continue;
if(isset($autoActions[$childID]) && $autoActions[$childID]->extra != 'auto') continue;
if(isset($autoActions[$childID]) && $autoActions[$childID]->extra != 'autobyparent') continue;
$this->taskTao->autoUpdateTaskByStatus($childTask, null, $parentStatus);
if(dao::isError()) return;
@@ -3326,7 +3326,7 @@ class taskModel extends model
if($childTask->story) $this->story->setStage($childTask->story);
/* Create action record. */
$this->taskTao->createAutoUpdateTaskAction($childTask);
$this->taskTao->createAutoUpdateTaskAction($childTask, 'parent');
if($this->config->edition != 'open' && $childTask->feedback) $this->loadModel('feedback')->updateStatus('task', $childTask->feedback, $status, $childTask->status);
}
}