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(); }