task_sunjun_53672

This commit is contained in:
sunjun
2022-05-10 08:23:33 +00:00
parent 0a23be8a5b
commit 6abe1812a0
+1
View File
@@ -190,6 +190,7 @@ class releaseModel extends model
->batchCheck($this->config->release->create->requiredFields, 'notempty')
->check('name', 'unique', "product = '{$release->product}' AND branch = '{$release->branch}' AND deleted = '0'")
->checkFlow();
if(dao::isError())
{
if(!empty($buildID)) $this->dao->delete()->from(TABLE_BUILD)->where('id')->eq($buildID)->exec();