From d5c8ab35c5b93eb3cb66c1615c43613eecea673a Mon Sep 17 00:00:00 2001 From: z Date: Thu, 20 Aug 2020 16:15:14 +0800 Subject: [PATCH] * fix bug #3380. --- module/story/model.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); } }