From dfd16ae73fd5486623ac37b5a569dfc09af4c458 Mon Sep 17 00:00:00 2001 From: liumengyi Date: Thu, 25 Jan 2024 17:16:13 +0800 Subject: [PATCH] * Fix bug #45299. --- module/execution/control.php | 1 + 1 file changed, 1 insertion(+) diff --git a/module/execution/control.php b/module/execution/control.php index 0cad651717..b9c4ce8a1f 100644 --- a/module/execution/control.php +++ b/module/execution/control.php @@ -622,6 +622,7 @@ class execution extends control $this->view->switcherParams = "executionID={$executionID}&productID={$productID}¤tMethod=testcase"; $this->view->switcherText = isset($products[$productID]) ? $products[$productID]->name : $this->lang->product->all; $this->view->switcherObjectID = $productID; + if(empty($execution->hasProduct)) $this->config->excludeSwitcherList[] = 'execution-testcase'; $this->display(); }