* Assign switcherObjectID, and all products are displayed only if multiple products exist.

This commit is contained in:
liumengyi
2023-12-23 10:50:38 +08:00
parent fc040326e5
commit 4899b3680a
2 changed files with 17 additions and 11 deletions
+6 -5
View File
@@ -609,11 +609,12 @@ class execution extends control
$this->executionZen->assignTestcaseVars($executionID, $productID, $branchID, $moduleID, $orderBy, $type, $pager);
$this->view->execution = $execution;
$this->view->productOption = $productOption;
$this->view->branchOption = $branchOption;
$this->view->switcherParams = "executionID={$executionID}&productID={$productID}&currentMethod=testcase";
$this->view->switcherText = isset($products[$productID]) ? $products[$productID]->name : $this->lang->product->all;
$this->view->execution = $execution;
$this->view->productOption = $productOption;
$this->view->branchOption = $branchOption;
$this->view->switcherParams = "executionID={$executionID}&productID={$productID}&currentMethod=testcase";
$this->view->switcherText = isset($products[$productID]) ? $products[$productID]->name : $this->lang->product->all;
$this->view->switcherObjectID = $productID;
$this->display();
}