* Fix copy story title error.

This commit is contained in:
tianshujie
2023-09-07 15:33:08 +08:00
parent a32f5d5ca8
commit 32d8582000
2 changed files with 9 additions and 4 deletions
+8 -3
View File
@@ -121,7 +121,7 @@ function toggleSelectTestStory(executionID)
*/
function loadAll()
{
const executionID = $(this).val();
const executionID = $('input[name=execution]').val();
const fieldList = showFields + ',';
lifetime = lifetimeList[executionID];
attribute = attributeList[executionID];
@@ -231,8 +231,12 @@ function loadExecutionMembers(executionID)
const getAssignedToLink = $.createLink('execution', 'ajaxGetMembers', 'executionID=' + executionID + '&assignedTo=' + $('#assignedTo').val());
$.get(getAssignedToLink, function(data)
{
$('#assignedTo').replaceWith(data);
$('#assignedTo').attr('name', 'assignedTo[]');
if(data)
{
data = JSON.parse(data);
const $assignedToPicker = $('input[name=assignedTo]').zui('picker');
$assignedToPicker.render({items: data});
}
});
}
@@ -486,6 +490,7 @@ window.copyStoryTitle = function()
$('#name').attr('value', storyTitle);
$('#estimate').attr('value', $('input[name=storyEstimate]').val());
$('#desc').attr('value', $('input[name=storyDesc]').val());
$('input[name=pri]').zui('pripicker').$.setValue($('input[name=storyPri]').val());
}
window.showAllModule = function()
+1 -1
View File
@@ -424,7 +424,7 @@ formPanel
),
formHidden('storyEstimate', ''),
formHidden('storyDesc', ''),
formHidden('storyPri', ''),
formHidden('storyPri', 0),
),
formGroup
(