* fix bug for create project release.

This commit is contained in:
wangyidong
2022-11-11 17:35:34 +08:00
parent 8c3c3bc660
commit 549290cf9d
3 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -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);
}
+2 -1
View File
@@ -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();
})
}
+1 -1
View File
@@ -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>