From d6488a7e0fc1439404e6b6dab4ce51dbd512e2f1 Mon Sep 17 00:00:00 2001 From: wangyuting <851424971@qq.com> Date: Wed, 16 Nov 2022 02:29:06 +0000 Subject: [PATCH] * Fix bug #29708. --- module/bug/control.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/module/bug/control.php b/module/bug/control.php index b8546daf3a..7c12932430 100755 --- a/module/bug/control.php +++ b/module/bug/control.php @@ -286,6 +286,9 @@ class bug extends control } } + $project = $this->loadModel('project')->getByShadowProduct($productID); + if(!$project->multiple) unset($this->lang->bug->report->charts['bugsPerExecution']); + $this->qa->setMenu($this->products, $productID, $branchID); $this->view->title = $this->products[$productID] . $this->lang->colon . $this->lang->bug->common . $this->lang->colon . $this->lang->bug->reportChart; $this->view->position[] = html::a($this->createLink('bug', 'browse', "productID=$productID"), $this->products[$productID]);