From 64db445452d3f2943bc38b661146a4dc4539e87f Mon Sep 17 00:00:00 2001 From: hufangzhou Date: Mon, 25 Dec 2023 13:56:42 +0800 Subject: [PATCH] * Fix bug #42141. --- module/bug/js/batchcreate.js | 5 +++++ module/bug/view/batchcreate.html.php | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/module/bug/js/batchcreate.js b/module/bug/js/batchcreate.js index dd63b09c00..dd138bd7a7 100644 --- a/module/bug/js/batchcreate.js +++ b/module/bug/js/batchcreate.js @@ -18,6 +18,11 @@ $(function() }); $('#dropMenu').css('z-index', 9999); + + $("input[name^='uploadImage']").each(function() + { + $(this).closest('td').siblings("td[id^='buildBox']").find('select').data('zui.picker').setValue('trunk'); + }) }) /** diff --git a/module/bug/view/batchcreate.html.php b/module/bug/view/batchcreate.html.php index 9710f161f7..0671c0d9d2 100755 --- a/module/bug/view/batchcreate.html.php +++ b/module/bug/view/batchcreate.html.php @@ -15,6 +15,7 @@ include '../../common/view/header.html.php'; js::set('requiredFields', $config->bug->create->requiredFields); js::set('productID', $productID); js::set('released', $lang->build->released); +js::set('titles', !empty($titles) ? $titles : array()); ?> bug->create->requiredFields) as $field) projectBox' style='overflow:visible'> executionBox' style='overflow:visible'> - +