From 1337f3beffb67c97ce0d30c712a185edb25f00ec Mon Sep 17 00:00:00 2001 From: tianshujie Date: Fri, 24 May 2024 15:09:22 +0800 Subject: [PATCH] * Fix bug #50125. --- module/kanban/js/common.ui.js | 9 ++++++++- module/kanban/js/create.ui.js | 3 ++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/module/kanban/js/common.ui.js b/module/kanban/js/common.ui.js index 3f50bdd064..6ddf2f8cc0 100644 --- a/module/kanban/js/common.ui.js +++ b/module/kanban/js/common.ui.js @@ -37,7 +37,14 @@ window.changeKanbanType = function() { const type = $('[name=type]:checked').val(); const url = $.createLink('kanban', 'create', 'spaceID=' + spaceID + '&type=' + type); - loadPartial(url, '#WIPCountBox, #spaceBox, #nameBox, #ownerBox, #teamBox, #fixedColBox, #autoColBox, #archiveBox, #manageProgressBox, #alignmentBox, #descBox, #whitelistBox'); + loadPartial(url, '#WIPCountBox, #spaceBox, #nameBox, #ownerBox, #teamBox, #fixedColBox, #autoColBox, #archiveBox, #manageProgressBox, #alignmentBox, #descBox, #whitelistBox', {success: function() + { + waitDom('#spaceBox [name=space]', function() + { + const copySpaceID = $('#spaceBox input[name=space]').val(); + $('#spaceBox input[name=space]').zui('picker').$.setValue(copySpaceID); + }); + }}); } window.loadAllUsers = function() diff --git a/module/kanban/js/create.ui.js b/module/kanban/js/create.ui.js index 84d0704f7c..bb4c80d080 100644 --- a/module/kanban/js/create.ui.js +++ b/module/kanban/js/create.ui.js @@ -6,7 +6,8 @@ window.clickCopyCard = function(event) window.setCopyKanban = function(kanbanID) { - copyRegion = $('[name=copyRegionInfo]').prop('checked'); + const copyRegion = $('[name=copyRegionInfo]').prop('checked'); + const spaceType = $('[name=type]:checked').val(); const url = $.createLink('kanban', 'create', 'spaceID=' + spaceID + '&type=' + spaceType + '©KanbanID=' + kanbanID + '&exyra=copyRegion=' + (copyRegion ? '1' : '0')); loadPartial(url, '#WIPCountBox, #spaceBox, #nameBox, #ownerBox, #teamBox, #fixedColBox, #autoColBox, #archiveBox, #manageProgressBox, #alignmentBox, #descBox, #whitelistBox', {success: function() {