This commit is contained in:
wangyidong
2022-11-10 12:09:14 +08:00
parent 2e6e289f1a
commit e2cf4aa1be
4 changed files with 11 additions and 18 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ class testreportModel extends model
$execution = $this->loadModel('execution')->getByID($this->post->execution);
$data = fixer::input('post')
->stripTags($this->config->testreport->editor->create['id'], $this->config->allowedTags)
->setDefault('project', $execution->project)
->setDefault('project', $execution->type == 'project' ? $execution->id : $execution->project)
->add('createdBy', $this->app->user->account)
->add('createdDate', helper::now())
->join('stories', ',')