Skip to content

Commit

Permalink
fix: moving objects in alphabetical tree
Browse files Browse the repository at this point in the history
  • Loading branch information
dturopoli committed Mar 21, 2024
1 parent c0eb487 commit 809199d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions public/js/pimcore/object/tree.js
Original file line number Diff line number Diff line change
Expand Up @@ -267,14 +267,16 @@ pimcore.registerNS("pimcore.object.tree");

onTreeNodesDrop: function (node, data, overModel, dropPosition, eOpts) {
if (typeof this.treeNodeMoveParameter.oldParent.getOwnerTree !== "function") {
if (dropPosition == "before" || dropPosition == "after") {
return;
}

Ext.Array.each(data.records, function (record) {
if (this.onTreeNodeBeforeMove(record, record.parentNode, overModel)) {
this.onTreeNodeMove(record, record.parentNode, overModel, 0);
}
}.bind(this));
}

if (typeof this.treeNodeMoveParameter.oldParent.getOwnerTree !== "function") {
return;
}

Expand Down

0 comments on commit 809199d

Please sign in to comment.