* Fix bug.

This commit is contained in:
tianshujie98
2021-01-25 13:02:56 +08:00
parent 8fc2677452
commit f045942e3d
+1 -1
View File
@@ -163,7 +163,7 @@ class projectreleaseModel extends model
$build = $this->loadModel('file')->processImgURL($build, $this->config->release->editor->create['id']);
$this->dao->insert(TABLE_BUILD)->data($build)
->autoCheck()
->check('name', 'unique', "product = {$productID} AND branch = {$branch} AND deleted = '0'")
->check('name', 'unique', "product = '{$productID}' AND branch = '{$branch}' AND deleted = '0'")
->batchCheck($this->config->release->create->requiredFields, 'notempty')
->exec();
if(dao::isError()) return false;