* Fix bug of task #59480, #59481.

This commit is contained in:
liumengyi
2022-07-07 15:46:36 +08:00
parent d24c7185f5
commit ef6ffd019b
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1021,7 +1021,7 @@ class execution extends control
}
elseif(!empty($products))
{
$productID = reset($products)->id;
$productID = empty($productID) ? reset($products)->id : $productID;
$moduleTree = $this->tree->getTreeMenu($productID, 'bug', 0, array('treeModel', 'createBugLink'), $extra + array('productID' => $productID), 'all');
}
else
+1 -1
View File
@@ -1078,7 +1078,7 @@ class project extends control
}
elseif(!empty($products))
{
$productID = reset($products)->id;
$productID = empty($productID) ? reset($products)->id : $productID;
$moduleTree = $this->tree->getTreeMenu($productID, 'bug', 0, array('treeModel', 'createBugLink'), $extra + array('productID' => $productID), 'all');
}
else