From d3e3335599d40955236eea985089e49c057567e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=80=A1=E6=A0=8B?= Date: Wed, 16 Nov 2022 13:03:50 +0800 Subject: [PATCH] * fix bug #29727. --- 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 e49972b243..cfe75ac92a 100755 --- a/module/story/control.php +++ b/module/story/control.php @@ -2710,6 +2710,7 @@ class story extends control $this->story->replaceURLang($storyType); + $this->products = $this->product->getPairs('', 0, '', 'all'); if($this->app->tab == 'project') { $project = $this->dao->findByID($projectID)->from(TABLE_PROJECT)->fetch(); @@ -2729,12 +2730,13 @@ class story extends control unset($this->lang->story->report->charts['storysPerPlan']); } } + else + { + $this->product->setMenu($productID, $branchID); + } if($storyType != 'story') unset($this->lang->story->report->charts['storysPerStage']); - $this->products = $this->product->getPairs('', 0, '', 'all'); - $this->product->setMenu($productID, $branchID); - $this->view->title = $this->products[$productID] . $this->lang->colon . $this->lang->story->reportChart; $this->view->position[] = $this->products[$productID]; $this->view->position[] = $this->lang->story->reportChart;