From 389f7a98013ce4758fc3cdaeab400fd505973abd Mon Sep 17 00:00:00 2001 From: liumengyi Date: Thu, 23 Feb 2023 05:24:32 +0000 Subject: [PATCH] * Fix bug #32202. --- module/story/control.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/module/story/control.php b/module/story/control.php index 9f22ffca2d..d380938315 100755 --- a/module/story/control.php +++ b/module/story/control.php @@ -922,7 +922,11 @@ class story extends control $this->view->hiddenParent = true; if($project->model !== 'scrum') $this->view->hiddenPlan = true; - if(!$project->multiple) $this->view->hiddenPlan = true; + if(!$project->multiple) + { + $this->view->hiddenPlan = true; + unset($this->lang->story->stageList[''], $this->lang->story->stageList['wait'], $this->lang->story->stageList['planned']); + } if($project->model === 'kanban') $this->view->hiddenURS = true; } @@ -952,8 +956,6 @@ class story extends control $branch = $product->type == 'branch' ? ($story->branch > 0 ? $story->branch : '0') : 'all'; $productStories = $this->story->getProductStoryPairs($story->product, $branch, 0, 'all', 'id_desc', 0, '', $story->type); - if(!empty($product->shadow)) unset($this->lang->story->stageList[''], $this->lang->story->stageList['wait'], $this->lang->story->stageList['planned']); - $this->view->title = $this->lang->story->edit . "STORY" . $this->lang->colon . $this->view->story->title; $this->view->position[] = $this->lang->story->edit; $this->view->story = $story;