This commit is contained in:
wangyidong
2015-04-14 09:26:32 +08:00
parent 9f6fb46686
commit dd3b718016
+6 -1
View File
@@ -418,7 +418,7 @@ class storyModel extends model
if(!dao::isError())
{
$this->setStage($storyID);
if($story->stage != 'verified') $this->setStage($storyID);
return common::createChanges($oldStory, $story);
}
}
@@ -472,6 +472,11 @@ class storyModel extends model
if($story->closedReason != false and $oldStory->closedDate == '') $story->closedDate = $now;
if($story->closedBy != false or $story->closedReason != false) $story->status = 'closed';
if($story->closedReason != false and $story->closedBy == false) $story->closedBy = $this->app->user->account;
if($story->stage != $oldStory->story and $story->stage != 'verified')
{
$this->setStage($storyID);
unset($story->stage);
}
$stories[$storyID] = $story;
unset($story);