Merge branch 'sprint/173_xieqiyu_16479' into 'sprint/170'

* Fix bug#16479.

See merge request easycorp/zentaopms!564
This commit is contained in:
李玉春
2021-11-22 05:04:14 +00:00
4 changed files with 3 additions and 29 deletions
+1 -12
View File
@@ -940,18 +940,7 @@ class testcase extends control
if($product->type != 'normal')
{
$branches = $this->loadModel('branch')->getPairs($productID);
if($branch === 'all')
{
$modules[0] = $this->tree->getOptionMenu($productID, $viewType = 'case', 0, 0);
foreach($branches as $branchID => $branchName)
{
$modules[$branchID] = $this->tree->getOptionMenu($productID, $viewType = 'case', 0, $branchID);
}
}
else
{
$modules[$branch] = $this->tree->getOptionMenu($productID, $viewType = 'case', 0, $branch);
}
foreach($branches as $branchID => $branchName) $modules[$branchID] = $this->tree->getOptionMenu($productID, $viewType = 'case', 0, $branchID);
}
else
{