From df651dd614536190098e7f1d4fab248ec6cade87 Mon Sep 17 00:00:00 2001 From: chaideqing Date: Thu, 2 Mar 2023 13:02:04 +0800 Subject: [PATCH] * Fix feedback 2356. --- module/execution/model.php | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/module/execution/model.php b/module/execution/model.php index 31307505c7..0e84c6e7ba 100755 --- a/module/execution/model.php +++ b/module/execution/model.php @@ -448,7 +448,7 @@ class executionModel extends model ->checkIF($sprint->end != '', 'end', 'ge', $sprint->begin) ->checkFlow() ->exec(); - + /* Add the creater to the team. */ if(!dao::isError()) { @@ -5719,6 +5719,17 @@ class executionModel extends model $post = $_POST; $_POST = array(); + $extendFields = $this->dao->select('field') + ->from(TABLE_WORKFLOWFIELD) + ->where('module')->eq('project') + ->andWhere('buildin')->eq(0) + ->andWhere('role')->eq('custom') + ->fetchPairs('field'); + foreach(array_keys($extendFields) as $key) + { + if(isset($post[$key])) $_POST[$key] = $post[$key]; + } + $_POST['project'] = $projectID; $_POST['name'] = $project->name; $_POST['begin'] = $project->begin;