* Fix bug#16519.

This commit is contained in:
xieqiyu
2021-11-22 12:33:27 +08:00
parent 13ae5b4d9a
commit 0669e7385b
2 changed files with 2 additions and 13 deletions
+1 -12
View File
@@ -926,18 +926,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
{
+1 -1
View File
@@ -84,7 +84,7 @@
<div class='table-actions btn-toolbar'>
<div class='btn-group dropup'>
<?php
$actionLink = $this->createLink('testcase', 'batchEdit', "productID=$productID");
$actionLink = $this->createLink('testcase', 'batchEdit', "productID=$productID&branch=$task->branch");
$misc = $canBatchEdit ? "onclick=\"setFormAction('$actionLink')\"" : "disabled='disabled'";
echo html::commonButton($lang->edit, $misc);
?>