* Optimize code for bug #23123.

This commit is contained in:
liumengyi
2022-07-08 13:55:41 +08:00
parent f9b24fb48c
commit 29993afa9e
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -1021,7 +1021,7 @@ class execution extends control
}
elseif(!empty($products))
{
$productID = empty($productID) ? reset($products)->id : $productID;
$productID = empty($productID) ? reset($products)->id : $productID;
$moduleTree = $this->tree->getTreeMenu($productID, 'bug', 0, array('treeModel', 'createBugLink'), $extra + array('branchID' => $branch, 'productID' => $productID), $branch);
}
else
@@ -1030,7 +1030,7 @@ class execution extends control
}
$tree = $moduleID ? $this->tree->getByID($moduleID) : '';
$showModule = !empty($this->config->datatable->executionBug->showModule) ? $this->config->datatable->executionBug->showModule : '';
$showModule = !empty($this->config->datatable->executionBug->showModule) ? $this->config->datatable->executionBug->showModule : '';
/* Assign. */
$this->view->title = $title;