* [bug#59747] Query all branch builds when select main branch when create or edit bug.
This commit is contained in:
@@ -400,7 +400,7 @@ function loadProductBuilds(productID, type = 'normal', buildBox = 'all')
|
||||
{
|
||||
if(buildBox == 'all' || buildBox == 'openedBuild')
|
||||
{
|
||||
const link = $.createLink('build', 'ajaxGetProductBuilds', 'productID=' + productID + '&varName=openedBuild&build=&branch=' + branch + '&type=' + type);
|
||||
const link = $.createLink('build', 'ajaxGetProductBuilds', 'productID=' + productID + '&varName=openedBuild&build=&branch=' + (branch == 0 ? 'all' : branch) + '&type=' + type);
|
||||
$.getJSON(link, function(data)
|
||||
{
|
||||
let buildID = $('[name^="openedBuild"]').val();
|
||||
@@ -415,7 +415,7 @@ function loadProductBuilds(productID, type = 'normal', buildBox = 'all')
|
||||
{
|
||||
if(buildBox == 'all' || buildBox == 'openedBuild')
|
||||
{
|
||||
const openedLink = $.createLink('build', 'ajaxGetProductBuilds', 'productID=' + productID + '&varName=openedBuild&build=' + bug.openedBuild + '&branch=' + branch + '&type=' + type);
|
||||
const openedLink = $.createLink('build', 'ajaxGetProductBuilds', 'productID=' + productID + '&varName=openedBuild&build=' + bug.openedBuild + '&branch=' + (branch == 0 ? 'all' : branch) + '&type=' + type);
|
||||
$.getJSON(openedLink, function(data)
|
||||
{
|
||||
let buildID = $('[name^="openedBuild"]').val().toString();
|
||||
|
||||
+2
-2
@@ -1007,7 +1007,7 @@ class bugZen extends bug
|
||||
}
|
||||
else
|
||||
{
|
||||
$builds = $this->build->getBuildPairs(array($productID), $branch, 'noempty,noterminate,nodone,withbranch,noreleased,nowaitreleased,nofail');
|
||||
$builds = $this->build->getBuildPairs(array($productID), empty($branch) ? 'all' : $branch, 'noempty,noterminate,nodone,withbranch,noreleased,nowaitreleased,nofail');
|
||||
}
|
||||
$builds = $this->build->addReleaseLabelForBuilds($productID, $builds);
|
||||
|
||||
@@ -1245,7 +1245,7 @@ class bugZen extends bug
|
||||
}
|
||||
else
|
||||
{
|
||||
$openedBuilds = $this->loadModel('build')->getBuildPairs(array($bug->product), $bug->branch, 'noempty,noterminate,nodone,withbranch,noreleased,nofail');
|
||||
$openedBuilds = $this->loadModel('build')->getBuildPairs(array($bug->product), empty($bug->branch) ? 'all' : $bug->branch, 'noempty,noterminate,nodone,withbranch,noreleased,nofail');
|
||||
$assignedToList = $this->bug->getProductMemberPairs($bug->product, (string)$bug->branch);
|
||||
$assignedToList = array_filter($assignedToList);
|
||||
if(empty($assignedToList)) $assignedToList = $this->user->getPairs('devfirst|noclosed');
|
||||
|
||||
Reference in New Issue
Block a user