diff --git a/module/story/model.php b/module/story/model.php index b30b191559..3781917868 100644 --- a/module/story/model.php +++ b/module/story/model.php @@ -657,9 +657,11 @@ class storyModel extends model if(isset($story->closedReason) and $story->closedReason == 'done') $this->loadModel('score')->create('story', 'close'); + /* Fix bug #3153. */ + if($oldStory->plan != $story->plan and (empty($oldStory->plan) or empty($story->plan))) $this->setStage($storyID); + unset($oldStory->parent); unset($story->parent); - $this->setStage($storyID); return common::createChanges($oldStory, $story); } }