* Fix build can't remove branch bug.

This commit is contained in:
孙广明
2021-08-12 15:04:09 +08:00
parent 4f07ce4498
commit 34c8aa1423
-1
View File
@@ -395,7 +395,6 @@ class buildModel extends model
$oldBuild = $this->dao->select('*')->from(TABLE_BUILD)->where('id')->eq($buildID)->fetch();
$build = fixer::input('post')->stripTags($this->config->build->editor->edit['id'], $this->config->allowedTags)
->setDefault('product', $oldBuild->product)
->setDefault('branch', $oldBuild->branch)
->cleanInt('product,branch,execution')
->remove('allchecker,resolvedBy,files,labels,uid')
->get();