* fix bug for create project release.
This commit is contained in:
@@ -49,7 +49,7 @@ class projectrelease extends control
|
||||
|
||||
$this->view->products = $this->products;
|
||||
$this->view->product = $product;
|
||||
$this->view->branches = (isset($product->type) and $product->type == 'normal') ? array() : $this->loadModel('branch')->getPairs($productID, 'active');
|
||||
$this->view->branches = (isset($product->type) and $product->type == 'normal') ? array() : $this->loadModel('branch')->getPairs($productID, 'active', $projectID);
|
||||
$this->view->branch = $branch;
|
||||
$this->view->project = $this->project->getByID($projectID);
|
||||
}
|
||||
|
||||
@@ -45,9 +45,10 @@ function loadBranches(productID)
|
||||
if(data)
|
||||
{
|
||||
$inputGroup.append(data);
|
||||
$inputGroup.find('#branch').attr('onchange', 'loadBuilds()');
|
||||
$('#branch').css('width', '120px').chosen();
|
||||
loadBuilds();
|
||||
}
|
||||
loadBuilds();
|
||||
$inputGroup.fixInputGroup();
|
||||
})
|
||||
}
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
<td>
|
||||
<div class='input-group'>
|
||||
<?php echo html::select('product', $products, $product->id, "onchange='loadBranches(this.value)' class='form-control chosen'");?>
|
||||
<?php if($product->type != 'normal') echo html::select('branch', $branches, $branch, "class='form-control chosen control-branch' onchange='loadBuilds()'");?>
|
||||
<?php if($product->type != 'normal') echo html::select('branch', $branches, $branch, "class='form-control chosen control-branch'");?>
|
||||
</div>
|
||||
</td>
|
||||
<td></td>
|
||||
|
||||
Reference in New Issue
Block a user