This commit is contained in:
tianshujie
2021-11-17 17:43:42 +08:00
parent 152e27b1a8
commit b61872bcd0
+1 -1
View File
@@ -379,12 +379,12 @@ 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)
->setIF($this->post->branch === '', 'branch', $oldBuild->branch)
->setDefault('product', $oldBuild->product)
->setDefault('branch', $oldBuild->branch)
->cleanInt('product,branch,execution')
->remove('allchecker,resolvedBy,files,labels,uid')
->get();
if(isset($_POST['branch'])) $build->branch = (int)$_POST['branch'];
$build = $this->loadModel('file')->processImgURL($build, $this->config->build->editor->edit['id'], $this->post->uid);