From 0e4cb7a2dd4d5bd2fa868512b4eb39a4fd323258 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=80=A1=E6=A0=8B?= Date: Fri, 14 Jan 2022 14:39:54 +0800 Subject: [PATCH] * adjust for task #47159. --- extension/lite/execution/ext/view/create.html.php | 1 + module/execution/model.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/extension/lite/execution/ext/view/create.html.php b/extension/lite/execution/ext/view/create.html.php index 409d38dc01..94053dac17 100644 --- a/extension/lite/execution/ext/view/create.html.php +++ b/extension/lite/execution/ext/view/create.html.php @@ -102,6 +102,7 @@ + diff --git a/module/execution/model.php b/module/execution/model.php index f7d9f619dc..319c35e1a6 100644 --- a/module/execution/model.php +++ b/module/execution/model.php @@ -327,7 +327,7 @@ class executionModel extends model ->setIF($this->config->systemMode == 'new', 'parent', $this->post->project) ->setIF($this->post->acl == 'open', 'whitelist', '') ->join('whitelist', ',') - ->add('type', $type) + ->setDefault('type', $type) ->stripTags($this->config->execution->editor->create['id'], $this->config->allowedTags) ->remove('products, workDays, delta, branch, uid, plans, teams, teamMembers, contactListMenu') ->get();