From d279fa648a9ce2eda0ee857a061f6dd9b92651f3 Mon Sep 17 00:00:00 2001 From: tianshujie98 Date: Wed, 14 Jul 2021 10:41:08 +0800 Subject: [PATCH] * Fix bug #13612. --- module/execution/model.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/module/execution/model.php b/module/execution/model.php index b43c8b03c3..5ff8526817 100644 --- a/module/execution/model.php +++ b/module/execution/model.php @@ -483,6 +483,12 @@ class executionModel extends model if(!empty($execution->realBegan) and !empty($execution->realEnd)) $execution->realDuration = $this->loadModel('programplan')->getDuration($execution->realBegan, $execution->realEnd); } + /* Redefines the language entries for the fields in the project table. */ + foreach(explode(',', $this->config->execution->create->requiredFields) as $field) + { + if(isset($this->lang->execution->$field)) $this->lang->project->$field = $this->lang->execution->$field; + } + /* Update data. */ $this->dao->update(TABLE_EXECUTION)->data($execution) ->autoCheck($skipFields = 'begin,end')