From 639ff39512f4ae7e97b87df1dbf8a618b48e491d Mon Sep 17 00:00:00 2001 From: caoyanyi Date: Tue, 23 Jan 2024 09:59:49 +0800 Subject: [PATCH] - Remove execution code check. --- module/execution/model.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/module/execution/model.php b/module/execution/model.php index 7dedc171e6..ff4b1ce7ff 100755 --- a/module/execution/model.php +++ b/module/execution/model.php @@ -320,14 +320,6 @@ 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' && 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); - return false; - } - /* Judge workdays is legitimate. */ $this->app->loadLang('project'); $workdays = helper::diffDate($postData->end, $postData->begin) + 1;