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')