diff --git a/module/build/js/create.js b/module/build/js/create.js index f74d9ca74e..96516eb760 100644 --- a/module/build/js/create.js +++ b/module/build/js/create.js @@ -14,6 +14,12 @@ $().ready(function() if(data) $('#buildBox').html(data); $('#builds').attr('data-placeholder', multipleSelect).chosen(); }); + + $.get(createLink('product', 'ajaxGetProductById', 'produtID=' + productID), function(data) + { + console.log(data.branchName) + $('#branchBox').closest('tr').find('th').text(data.branchName); + }, 'json'); }); $('input[name=isIntegrated]').change(function() @@ -69,6 +75,11 @@ function loadProducts(executionID) loadBranches($("#product").val()); } }); + + $.get(createLink('product', 'ajaxGetProductById', 'produtID=' + $("#product").val()), function(data) + { + $('#branchBox').closest('tr').find('th').text(data.branchName); + }, 'json'); loadLastBuild(); } diff --git a/module/build/view/create.html.php b/module/build/view/create.html.php index d2b96aadc9..40269a87dd 100644 --- a/module/build/view/create.html.php +++ b/module/build/view/create.html.php @@ -45,7 +45,7 @@ '> - build->branch;?> + type == 'normal' ? '' : $lang->product->branchName[$product->type]?>
branches), "class='form-control chosen' multiple required"); ?>