From 2aec80f62c1deb733425578dfb3543c8bd40eaa3 Mon Sep 17 00:00:00 2001 From: hufangzhou Date: Tue, 14 Feb 2023 17:36:21 +0800 Subject: [PATCH] * Fix bug #32140. --- module/bug/control.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/bug/control.php b/module/bug/control.php index 966d70ef02..98506aba92 100755 --- a/module/bug/control.php +++ b/module/bug/control.php @@ -288,7 +288,7 @@ class bug extends control } $project = $this->loadModel('project')->getByShadowProduct($productID); - if(!$project->multiple) unset($this->lang->bug->report->charts['bugsPerExecution']); + if(!empty($project) and !$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;