* code for task#1514.

This commit is contained in:
azhi
2013-07-30 08:39:33 +08:00
parent b9e7b3a7f6
commit 3bdb4f6cba
+2
View File
@@ -648,8 +648,10 @@ class storyModel extends model
$story->lastEditedBy = $this->app->user->account;
$story->lastEditedDate = $now;
$story->plan = $planID;
if($planID) $story->stage = 'planned';
$this->dao->update(TABLE_STORY)->data($story)->autoCheck()->where('id')->eq((int)$storyID)->exec();
if(!$planID) $this->setStage($storyID);
if(!dao::isError()) $allChanges[$storyID] = common::createChanges($oldStory, $story);
}
return $allChanges;