* Add id for checking unique field.

This commit is contained in:
daitingting
2022-05-09 17:02:23 +08:00
committed by wangyuting2
parent a607161591
commit d577d57a33
16 changed files with 73 additions and 6 deletions
+1
View File
@@ -325,6 +325,7 @@ class buildModel extends model
$buildID = (int)$buildID;
$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)
->add('id', $buildID)
->setIF(!isset($_POST['branch']), 'branch', $oldBuild->branch)
->setDefault('product', $oldBuild->product)
->cleanInt('product,branch,execution')