From 2b66d5d5ca121d17189a8a2dab0c0faff195d41d Mon Sep 17 00:00:00 2001 From: zenggang Date: Fri, 2 Dec 2022 05:32:33 +0000 Subject: [PATCH] * Fix bug#30470 --- module/execution/model.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/module/execution/model.php b/module/execution/model.php index 1e83956238..ed66a03b88 100755 --- a/module/execution/model.php +++ b/module/execution/model.php @@ -5189,6 +5189,7 @@ 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['realBegan'] = $project->realBegan; @@ -5202,8 +5203,6 @@ class executionModel extends model $_POST['status'] = $project->status; $_POST['acl'] = 'open'; - if(!empty($_POST['code'])) $_POST['code'] = $project->code; - $projectProducts = $this->dao->select('*')->from(TABLE_PROJECTPRODUCT)->where('project')->eq($projectID)->fetchAll(); foreach($projectProducts as $projectProduct) {