From d19e09c48d0b0a93a28c3ccd7d81b03be6e16dd4 Mon Sep 17 00:00:00 2001 From: chaideqing Date: Tue, 1 Aug 2023 06:07:48 +0000 Subject: [PATCH] * Fix bug#36553. --- module/story/control.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/module/story/control.php b/module/story/control.php index 905914e77c..a016f60d03 100755 --- a/module/story/control.php +++ b/module/story/control.php @@ -1312,13 +1312,14 @@ class story extends control } $this->commonAction($storyID); - $this->story->getAffectedScope($this->view->story); + $story = $this->view->story; + if($story->status != 'active') return print(js::locate($this->session->storyList, 'parent')); + $this->story->getAffectedScope($story); $this->app->loadLang('task'); $this->app->loadLang('bug'); $this->app->loadLang('testcase'); $this->app->loadLang('execution'); - $story = $this->view->story; $reviewer = $this->story->getReviewerPairs($storyID, $story->version); $product = $this->loadModel('product')->getByID($story->product);