From 81e76a0e1e273ffae2918844fb7891f5bd1702ef Mon Sep 17 00:00:00 2001 From: chaideqing Date: Thu, 2 Mar 2023 15:55:01 +0800 Subject: [PATCH] * Fix feedback2356 edit function. --- module/execution/model.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/module/execution/model.php b/module/execution/model.php index 0e84c6e7ba..2de8929014 100755 --- a/module/execution/model.php +++ b/module/execution/model.php @@ -5783,6 +5783,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;