EspoCRM – Open Source CRM Application
PHP calendarcontactscrmcrm-platformcrm-systemcustomer-portalcustomer-supportcustomizabledocumentsemail-marketingkanbanleadsopen-sourcephpplatformsales-automationsingle-page-applicationsupport
impr
Yuri Kuznetsove1e83522dc56
diff --git a/client/src/helpers/list/misc/list-tree-draggable.js b/client/src/helpers/list/misc/list-tree-draggable.jsindex 19c9a32387..fe73d488b8 100644--- a/client/src/helpers/list/misc/list-tree-draggable.js+++ b/client/src/helpers/list/misc/list-tree-draggable.js@@ -331,7 +331,15 @@ export default class ListTreeDraggableHelper {*/async updateAfter(view, movedId) {if (view.collection.has(movedId)) {- await view.collection.fetch();+ const unfoldedIds = view.getItemViews()+ .filter(view => view.isUnfolded && view.model)+ .map(view => view.model.id);++ await view.collection.fetch({noRebuild: false});++ view.getItemViews()+ .filter(view => view && view.model && unfoldedIds.includes(view.model.id))+ .forEach(view => view.unfold());return;}