diff --git a/module/build/js/create.ui.js b/module/build/js/create.ui.js index 7a57db89fe..e1bef96b5f 100644 --- a/module/build/js/create.ui.js +++ b/module/build/js/create.ui.js @@ -10,8 +10,8 @@ $().ready(function() $(document).off('change', '[name=product], [name^=branch]').on('change', '[name=product], [name^=branch]', function() { let projectID = $('input[name=project]').val(); - let productID = $('input[name=product]').val(); - let systemID = $('input[name=system]').val(); + let productID = $('#createBuildForm input[name=product]').val(); + let systemID = $('input[name=system]').val(); $.get($.createLink('build', 'ajaxGetProjectBuilds', 'projectID=' + projectID + '&productID=' + productID + '&varName=builds&build=&branch=all&&needCreate=&type=noempty,notrunk,separate,singled&systemID=' + systemID), function(data) { if(data) diff --git a/module/build/ui/create.html.php b/module/build/ui/create.html.php index 859ceda54a..b4a3d12cf5 100644 --- a/module/build/ui/create.html.php +++ b/module/build/ui/create.html.php @@ -110,6 +110,7 @@ $productBranches = zget($product, 'branches', array()); formPanel ( set::title($lang->build->create), + set::formID('createBuildForm'), on::change('[name=newSystem]', 'setSystemBox'), on::change('[name=system]', 'loadBuilds'), $integratedRow,