From e3cc45b6f1d121eae969c36caa2f0d67bd354839 Mon Sep 17 00:00:00 2001 From: tanghucheng Date: Thu, 9 May 2024 11:15:00 +0800 Subject: [PATCH] * Fix bug #48870, parent stage can not closed. --- module/execution/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/execution/model.php b/module/execution/model.php index c9cf1ab575..75e9cc91fa 100755 --- a/module/execution/model.php +++ b/module/execution/model.php @@ -3834,7 +3834,7 @@ class executionModel extends model $action = strtolower($action); if($action == 'start') return $execution->status == 'wait'; - if($action == 'close') return $execution->status != 'closed' && (!isset($execution->isParent) || (isset($execution->isParent) && !$execution->isParent)); + if($action == 'close') return $execution->status != 'closed' && (!empty($execution->isIPDStage) || !isset($execution->isParent) || (isset($execution->isParent) && !$execution->isParent)); if($action == 'suspend') return $execution->status == 'wait' || $execution->status == 'doing'; if($action == 'putoff') return $execution->status == 'wait' || $execution->status == 'doing'; if($action == 'activate') return $execution->status == 'suspended' || $execution->status == 'closed';