* [task#127090,done,0.2h] adjust code for undefined variable.

This commit is contained in:
caoyanyi
2024-08-29 10:16:40 +08:00
committed by 田淑杰
parent 6745dfa78a
commit 3b16bc7e13
+1 -1
View File
@@ -111,7 +111,7 @@ class pipelineModel extends model
$this->dao->insert(TABLE_PIPELINE)->data($server)
->batchCheck($this->config->pipeline->create->requiredFields, 'notempty')
->batchCheck("url", 'URL')
->check('name', 'unique', "`type` = '$type'")
->check('name', 'unique', "`type` = '$server->type'")
->checkIF($server->type == 'jenkins', 'account', 'notempty')
->checkIF($server->type == 'jenkins' && !$server->token, 'password', 'notempty')
->checkIF($server->type == 'jenkins' && !$server->password, 'token', 'notempty')