We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c297df commit 0573360Copy full SHA for 0573360
plugins/content/contentobject/index.js
@@ -146,6 +146,10 @@ ContentObject.prototype.create = function (data, next) {
146
logger.log('error', 'Error creating ContentObject!', error);
147
return next(error);
148
}
149
+ // preserve sort order integers on pasted children
150
+ if (Number.isInteger(data._sortOrder)) {
151
+ return next(null, doc);
152
+ }
153
self.updateSiblingSortOrder(doc, next);
154
});
155
};
0 commit comments