From c4d072d24c06bdefe5e2fdc7b3d366053e6ea9fc Mon Sep 17 00:00:00 2001 From: tianshujie Date: Fri, 13 Oct 2023 13:59:50 +0800 Subject: [PATCH] * Fix an error when edit an execution. --- 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 ac8b88c2ed..456a1f1405 100755 --- a/module/execution/model.php +++ b/module/execution/model.php @@ -296,7 +296,7 @@ class executionModel extends model $oldExecution = $this->dao->findById($executionID)->from(TABLE_EXECUTION)->fetch(); /* Judgment of required items, such as execution code name. */ - if($oldExecution->type != 'stage' and $postData->code == '' and isset($this->config->setCode) and $this->config->setCode == 1) + if($oldExecution->type != 'stage' && empty($postData->code) && isset($this->config->setCode) && $this->config->setCode == 1) { /* $this->config->setCode is the value get from database with system owner and common module. */ dao::$errors['code'] = sprintf($this->lang->error->notempty, $this->lang->execution->code);