Merge branch 'sprint/170_songchenxuan_16411' into 'sprint/170'
* Fix bug 16411. See merge request easycorp/zentaopms!546
This commit is contained in:
@@ -16,6 +16,7 @@ class build extends control
|
||||
*
|
||||
* @param int $executionID
|
||||
* @param int $productID
|
||||
* @param int $projectID
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
@@ -72,7 +73,7 @@ class build extends control
|
||||
$productGroups = $this->loadModel('product')->getProducts($executionID);
|
||||
$productID = $productID ? $productID : key($productGroups);
|
||||
$branchGroups = $this->loadModel('project')->getBranchesByProject($executionID);
|
||||
$branchPairs = $this->loadModel('branch')->getPairs($productID);
|
||||
$branchPairs = $this->loadModel('branch')->getPairs($productID, 'active');
|
||||
$branches = array();
|
||||
$products = array();
|
||||
|
||||
@@ -81,7 +82,7 @@ class build extends control
|
||||
{
|
||||
foreach($branchGroups[$productID] as $branchID => $branch)
|
||||
{
|
||||
$branches[$branchID] = $branchPairs[$branchID];
|
||||
if(isset($branchPairs[$branchID])) $branches[$branchID] = $branchPairs[$branchID];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ function loadBranches(productID)
|
||||
}
|
||||
|
||||
executionID = $('#execution').val();
|
||||
$.get(createLink('branch', 'ajaxGetBranches', 'productID=' + productID + '&oldBranch=0¶m=&projectID=' + executionID), function(data)
|
||||
$.get(createLink('branch', 'ajaxGetBranches', 'productID=' + productID + '&oldBranch=0¶m=active&projectID=' + executionID), function(data)
|
||||
{
|
||||
if(data)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user