* Fix bug#28011

This commit is contained in:
zenggang
2022-09-29 06:56:02 +00:00
parent 9c5e3353e6
commit 6a85ed1d6f
2 changed files with 7 additions and 1 deletions
+2
View File
@@ -1158,6 +1158,7 @@ class bug extends control
$branch = $product->type == 'branch' ? ($bug->branch > 0 ? $bug->branch . ',0' : '0') : '';
$productBugs = $this->bug->getProductBugPairs($productID, $branch);
if(isset($productBugs[$bugID])) unset($productBugs[$bugID]);
$this->view->bug = $bug;
$this->view->productID = $productID;
@@ -1814,6 +1815,7 @@ class bug extends control
$product = $this->loadModel('product')->getById($productID);
$branch = $product->type == 'branch' ? ($bug->branch > 0 ? $bug->branch . ',0' : '0') : '';
$productBugs = $this->bug->getProductBugPairs($productID, $branch);
if(isset($productBugs[$bugID])) unset($productBugs[$bugID]);
$this->bug->checkBugExecutionPriv($bug);
$this->qa->setMenu($this->products, $productID, $bug->branch);