From cd44e32af6c05cc7a1871adce60fd68de556ec03 Mon Sep 17 00:00:00 2001 From: hufangzhou Date: Thu, 23 Feb 2023 00:19:44 +0000 Subject: [PATCH] * Resolve issue #755. --- module/execution/model.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/module/execution/model.php b/module/execution/model.php index 0c03e019a4..175741a1cc 100755 --- a/module/execution/model.php +++ b/module/execution/model.php @@ -1092,7 +1092,7 @@ class executionModel extends model if(!dao::isError()) { $changes = common::createChanges($parent, $newParent); - $actionType = $parentStatus == 'doing' ? 'startbychildedit' : 'waitbychild'; + $actionType = $parentStatus == 'doing' ? 'started' : 'waitbychild'; $actionID = $this->action->create('execution', $parentID, $actionType, '', $actionType); $this->action->logHistory($actionID, $changes); @@ -1121,7 +1121,7 @@ class executionModel extends model if(!dao::isError()) { $changes = common::createChanges($selfAndChildren[$executionID], $newExecution); - $actionID = $this->action->create('execution', $executionID, 'Edited'); + $actionID = $this->action->create('execution', $executionID, 'Started'); $this->action->logHistory($actionID, $changes); if($type != 'stage') return ''; @@ -1182,7 +1182,7 @@ class executionModel extends model if(!dao::isError()) { $changes = common::createChanges($selfAndChildren[$executionID], $newExecution); - $actionID = $this->action->create('execution', $executionID, 'Edited'); + $actionID = $this->action->create('execution', $executionID, strtoupper($status)); $this->action->logHistory($actionID, $changes); if($type != 'stage') return '';