From f7d7f68fc9ec0d8b157836158fb8bae2b55b0f5b Mon Sep 17 00:00:00 2001 From: wangyuting <851424971@qq.com> Date: Mon, 21 Nov 2022 02:18:59 +0000 Subject: [PATCH] * Fix bug #30000. --- 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 6b396e9e80..75ed75ee7e 100755 --- a/module/execution/model.php +++ b/module/execution/model.php @@ -5112,7 +5112,6 @@ class executionModel extends model $_POST = array(); $_POST['project'] = $projectID; $_POST['name'] = $project->name; - $_POST['code'] = $project->code; $_POST['begin'] = $project->begin; $_POST['end'] = $project->end; $_POST['status'] = 'wait'; @@ -5126,6 +5125,7 @@ class executionModel extends model $_POST['RD'] = ''; $_POST['multiple'] = '0'; $_POST['hasProduct'] = $project->hasProduct; + if($project->code) $_POST['code'] = $project->code; $projectProducts = $this->dao->select('*')->from(TABLE_PROJECTPRODUCT)->where('project')->eq($projectID)->fetchAll(); foreach($projectProducts as $projectProduct)