This commit is contained in:
wangyidong
2015-01-30 16:00:17 +08:00
parent 4d7feceb69
commit 3b78433dee
2 changed files with 2 additions and 8 deletions
+1 -2
View File
@@ -178,8 +178,7 @@ class buildModel extends model
public function update($buildID)
{
$oldBuild = $this->getByID($buildID);
$build = fixer::input('post')
->stripTags($this->config->build->editor->edit['id'], $this->config->allowedTags)
$build = fixer::input('post')->stripTags($this->config->build->editor->edit['id'], $this->config->allowedTags)
->remove('allchecker,resolvedBy,files,labels')
->get();
+1 -6
View File
@@ -142,12 +142,7 @@ class releaseModel extends model
public function update($releaseID)
{
$oldRelease = $this->getByID($releaseID);
$release = fixer::input('post')
->setDefault('stories', '')
->setDefault('bugs', '')
->join('stories', ',')
->join('bugs', ',')
->stripTags($this->config->release->editor->edit['id'], $this->config->allowedTags)
$release = fixer::input('post')->stripTags($this->config->release->editor->edit['id'], $this->config->allowedTags)
->remove('files,labels,allchecker')
->get();
$this->dao->update(TABLE_RELEASE)->data($release)