+ adjust code for release and build.

This commit is contained in:
shiyangyangwork@yahoo.cn
2012-01-03 03:02:48 +00:00
parent a4995694f8
commit 2f84f49ab5
11 changed files with 57 additions and 15 deletions
+2
View File
@@ -82,6 +82,8 @@ class releaseModel extends model
{
$oldRelease = $this->getByID($releaseID);
$release = fixer::input('post')->stripTags('name')->join('stories', ',')->join('bugs', ',')->get();
if(empty($release->stories)) $release->stories = '';
if(empty($release->bugs)) $release->bugs = '';
$this->dao->update(TABLE_RELEASE)->data($release)
->autoCheck()
->batchCheck($this->config->release->edit->requiredFields, 'notempty')