* Finish task#40852.

This commit is contained in:
qiyu-xie
2021-08-03 09:10:37 +08:00
parent d47b7efdcb
commit 4492bb2f0c
+2 -2
View File
@@ -47,8 +47,8 @@ class testcaseModel extends model
->add('fromBug', $bugID)
->setDefault('openedBy', $this->app->user->account)
->setDefault('openedDate', $now)
->setIF($this->config->systemMode == 'new' && $this->app->openApp == 'project', 'project', $this->session->project)
->setIF($this->config->systemMode == 'new' && $this->app->openApp == 'execution', 'execution', $this->session->execution)
->setIF($this->config->systemMode == 'new' and $this->app->openApp == 'project', 'project', $this->session->project)
->setIF($this->config->systemMode == 'new' and $this->app->openApp == 'execution', 'execution', $this->session->execution)
->setIF($this->post->story != false, 'storyVersion', $this->loadModel('story')->getVersion((int)$this->post->story))
->remove('steps,expects,files,labels,stepType,forceNotReview')
->setDefault('story', 0)