* Fix bug #16927.
This commit is contained in:
@@ -883,6 +883,7 @@ class bug extends control
|
||||
$bug = $this->bug->getById($bugID);
|
||||
$productID = $bug->product;
|
||||
$executionID = $bug->execution;
|
||||
$projectID = $bug->project;
|
||||
$currentModuleID = $bug->module;
|
||||
$this->bug->checkBugExecutionPriv($bug);
|
||||
|
||||
@@ -928,6 +929,10 @@ class bug extends control
|
||||
{
|
||||
$openedBuilds = $this->build->getExecutionBuildPairs($executionID, $productID, $bug->branch, 'noempty,noterminate,nodone');
|
||||
}
|
||||
elseif($projectID)
|
||||
{
|
||||
$openedBuilds = $this->build->getProjectBuildPairs($projectID, $productID, $bug->branch, 'noempty,noterminate,nodone');
|
||||
}
|
||||
else
|
||||
{
|
||||
$openedBuilds = $this->build->getProductBuildPairs($productID, $bug->branch, 'noempty,noterminate,nodone');
|
||||
|
||||
Reference in New Issue
Block a user