From 3b78433deea33156f469f5cb6d4e8e362a84e3bf Mon Sep 17 00:00:00 2001 From: wangyidong Date: Fri, 30 Jan 2015 16:00:17 +0800 Subject: [PATCH] * fix bug #677. --- module/build/model.php | 3 +-- module/release/model.php | 7 +------ 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/module/build/model.php b/module/build/model.php index 8be0c2367f..202b423617 100644 --- a/module/build/model.php +++ b/module/build/model.php @@ -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(); diff --git a/module/release/model.php b/module/release/model.php index 1d738c7916..acc2a291c3 100644 --- a/module/release/model.php +++ b/module/release/model.php @@ -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)