This commit is contained in:
songchenxuan
2023-08-15 20:28:44 +08:00
parent f2f5afc185
commit ac258eb968
+2 -1
View File
@@ -234,10 +234,11 @@ class storyModel extends model
->cleanInt('product,module,pri,plan')
->callFunc('title', 'trim')
->add('version', 1)
->setDefault('plan,verify,notifyEmail', '')
->setDefault('plan,notifyEmail', '')
->setDefault('openedBy', $this->app->user->account)
->setDefault('openedDate', $now)
->setDefault('estimate', 0)
->setIF(strlen($this->post->verify) == 0, 'verify', '')
->setIF($this->post->assignedTo, 'assignedDate', $now)
->setIF($this->post->plan > 0, 'stage', 'planned')
->setIF($this->post->estimate, 'estimate', (float)$this->post->estimate)