* remove set stage when edit story.

This commit is contained in:
wangyidong
2015-05-21 17:07:21 +08:00
parent c4f4bc5381
commit be8b0848d5
+1 -11
View File
@@ -413,11 +413,7 @@ class storyModel extends model
->checkIF(isset($story->closedReason) and $story->closedReason == 'subdivided', 'childStories', 'notempty')
->where('id')->eq((int)$storyID)->exec();
if(!dao::isError())
{
if($story->stage != 'verified') $this->setStage($storyID);
return common::createChanges($oldStory, $story);
}
if(!dao::isError()) return common::createChanges($oldStory, $story);
}
/**
@@ -469,14 +465,8 @@ 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);
}
foreach($stories as $storyID => $story)