From f7d97ebe333b5b5fc04f488bc4bf6da6be125fb0 Mon Sep 17 00:00:00 2001 From: tianshujie Date: Wed, 19 Jan 2022 08:49:09 +0800 Subject: [PATCH] * Fix bug #18692. --- module/execution/js/kanban.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/module/execution/js/kanban.js b/module/execution/js/kanban.js index b689c4576d..3c38cd4924 100644 --- a/module/execution/js/kanban.js +++ b/module/execution/js/kanban.js @@ -821,6 +821,25 @@ function changeCardColType(cardID, fromColID, toColID, fromLaneID, toLaneID, car showIframe = true; } } + + if(fromLaneID != toLaneID && fromColID == toColID) + { + var link = createLink('kanban', 'ajaxMoveCard', 'cardID=' + objectID + '&fromColID=' + fromColID + '&toColID=' + toColID + '&fromLaneID=' + fromLaneID + '&toLaneID=' + toLaneID + '&execitionID=' + executionID + '&browseType=' + browseType + '&groupBy=' + groupBy + '®ionID=' + regionID + '&orderBy=' + orderBy ); + $.ajax( + { + method: 'post', + dataType: 'json', + url: link, + success: function(data) + { + updateRegion(regionID, data[regionID]); + }, + error: function(xhr, status, error) + { + showErrorMessager(error || lang.timeout); + } + }); + } } /* Bug lane. */