* Fix bug#38454

This commit is contained in:
zenggang
2023-09-09 01:54:40 +00:00
parent f946eb06bc
commit 2619bd41a3
+4
View File
@@ -174,6 +174,10 @@ class jobModel extends model
$job = fixer::input('post')
->setDefault('atDay,projectKey', '')
->setDefault('sonarqubeServer', 0)
->setIF($this->post->triggerType != 'commit', 'comment', '')
->setIF($this->post->triggerType != 'schedule', 'atDay', '')
->setIF($this->post->triggerType != 'schedule', 'atTime', '')
->setIF($this->post->triggerType != 'tag', 'lastTag', '')
->add('createdBy', $this->app->user->account)
->add('createdDate', helper::now())
->remove('repoType,reference')