From 9629d2ee59be3dc04561e8891fdccbdb0e7efacf Mon Sep 17 00:00:00 2001 From: xieqiyu Date: Fri, 13 Sep 2024 08:36:42 +0800 Subject: [PATCH] * [bug#55313] Fix the bug of error in tutorial. --- module/testcase/zen.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/testcase/zen.php b/module/testcase/zen.php index b83618a055..30d1cad357 100755 --- a/module/testcase/zen.php +++ b/module/testcase/zen.php @@ -580,7 +580,7 @@ class testcaseZen extends testcase } $this->view->productID = $productID; - $this->view->productName = $this->products[$productID]; + $this->view->productName = zget($this->products, $productID, ''); $this->view->product = $product; $this->view->branch = (!empty($product) and $product->type != 'normal') ? $branch : 0; $this->view->branchOption = $branchOption; @@ -607,7 +607,7 @@ class testcaseZen extends testcase $showModule = !empty($this->config->testcase->browse->showModule) ? $this->config->testcase->browse->showModule : ''; $tree = $moduleID ? $this->tree->getByID($moduleID) : ''; - $this->view->title = $this->products[$productID] . $this->lang->hyphen . $this->lang->testcase->common; + $this->view->title = zget($this->products, $productID, '') . $this->lang->hyphen . $this->lang->testcase->common; $this->view->projectID = $projectID; $this->view->projectType = !empty($projectID) ? $this->dao->select('model')->from(TABLE_PROJECT)->where('id')->eq($projectID)->fetch('model') : ''; $this->view->browseType = $browseType;