* [bug#57678] fix bug for create build on create testtask page.

This commit is contained in:
liyang
2024-12-02 13:39:11 +08:00
committed by 曹延义
parent 41f60d3613
commit f86adfbaf7
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -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)
+1
View File
@@ -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,