From dd3b718016a0cb140dada703dc99727262beb976 Mon Sep 17 00:00:00 2001 From: wangyidong Date: Tue, 14 Apr 2015 09:26:32 +0800 Subject: [PATCH] * fix bug #695. --- module/story/model.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/module/story/model.php b/module/story/model.php index d88cbccc1c..7b6efcc867 100644 --- a/module/story/model.php +++ b/module/story/model.php @@ -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);