* finish task#1032.

This commit is contained in:
chencongzhi520@gmail.com
2013-01-05 00:49:08 +00:00
parent 160a702965
commit 6a5180863e

View File

@@ -556,11 +556,12 @@ class storyModel extends model
foreach($stories as $storyID => $story)
{
if(!$story->closedReason) continue;
$oldStory = $this->getById($storyID);
$this->dao->update(TABLE_STORY)->data($story)
->autoCheck()
->batchCheck($this->config->story->close->requiredFields, 'notempty')
->checkIF($story->closedReason == 'duplicate', 'duplicateStory', 'notempty')
->checkIF($story->closedReason == 'subdivided', 'childStories', 'notempty')
->where('id')->eq($storyID)->exec();