From d2f0e788fad718224a0ec363d56ea7304f216b6a Mon Sep 17 00:00:00 2001 From: guofeilong Date: Fri, 17 Mar 2023 11:08:31 +0800 Subject: [PATCH] * Code for bug #33060 . --- module/task/js/batchcreate.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/module/task/js/batchcreate.js b/module/task/js/batchcreate.js index 770503fde8..d240765fed 100755 --- a/module/task/js/batchcreate.js +++ b/module/task/js/batchcreate.js @@ -104,9 +104,9 @@ function copyStoryTitle(num) endPosition = storyTitle.lastIndexOf('['); storyTitle = storyTitle.substr(startPosition, endPosition - startPosition); - $('#name\\[' + num + '\\]').val(storyTitle); - $('#estimate\\[' + num + '\\]').val($('#storyEstimate' + num).val()); - $('#desc\\[' + num + '\\]').val(($('#storyDesc' + num).val()).replace(/<[^>]+>/g,'').replace(/(\n)+\n/g, "\n").replace(/^\n/g, '').replace(/\t/g, '')); + $('#name' + num).val(storyTitle); + $('#estimate' + num).val($('#storyEstimate' + num).val()); + $('#desc' + num).val(($('#storyDesc' + num).val()).replace(/<[^>]+>/g,'').replace(/(\n)+\n/g, "\n").replace(/^\n/g, '').replace(/\t/g, '')); var storyPri = $('#storyPri' + num).val(); if(storyPri == 0) $('#pri' + num ).val('3');