From 3ee96b3ed215d40ec25604666ca55b2369d1dc09 Mon Sep 17 00:00:00 2001 From: liugang Date: Tue, 8 Aug 2023 14:42:48 +0800 Subject: [PATCH] * testcase: fix error of call undefined variable. --- module/testcase/control.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/testcase/control.php b/module/testcase/control.php index 7158613bb5..5bb0c0f6c3 100644 --- a/module/testcase/control.php +++ b/module/testcase/control.php @@ -2616,7 +2616,7 @@ class testcase extends control $this->view->title = $this->products[$productID] . $this->lang->colon . $this->lang->testcase->newScene; $this->view->moduleOptionMenu = $this->tree->getOptionMenu($productID, $viewType = 'case', $startModuleID = 0, ($branch === 'all' || !isset($branches[$branch])) ? 0 : $branch); $this->view->sceneOptionMenu = $this->testcase->getSceneMenu($productID, $moduleID, $viewType = 'case', $startSceneID = 0, ($branch === 'all' || !isset($branches[$branch])) ? 0 : $branch); - $this->view->currentModuleID = $$moduleID ? (int)$moduleID : (int)$this->cookie->lastCaseModule; + $this->view->currentModuleID = $moduleID ? (int)$moduleID : (int)$this->cookie->lastCaseModule; $this->view->currentParentID = (int)$this->cookie->lastCaseScene; $this->view->product = $product; $this->view->branch = $branch;