From 50e4f6611e289bba151ce5efecbf2e49d6a132da Mon Sep 17 00:00:00 2001 From: tianshujie98 Date: Wed, 2 Jun 2021 09:24:18 +0800 Subject: [PATCH] * Fix bug #12955. --- module/execution/model.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/module/execution/model.php b/module/execution/model.php index 67638e6943..94e993dffc 100644 --- a/module/execution/model.php +++ b/module/execution/model.php @@ -346,6 +346,14 @@ class executionModel extends model } $sprint = $this->loadModel('file')->processImgURL($sprint, $this->config->execution->editor->create['id'], $this->post->uid); + + /* Replace required language. */ + if($this->app->openApp == 'project') + { + $this->lang->project->name = $this->lang->execution->name; + $this->lang->project->code = $this->lang->execution->code; + } + $this->dao->insert(TABLE_EXECUTION)->data($sprint) ->autoCheck($skipFields = 'begin,end') ->batchcheck($this->config->execution->create->requiredFields, 'notempty')