Merge pull request #4674 from ss23/parentidfix

Fix page reordering bug with ParentID
This commit is contained in:
Ingo Schommer 2015-10-13 11:35:52 +13:00
commit 421d1b53b0

View File

@ -105,7 +105,10 @@
SiblingIDs: siblingIDs
},
success: function() {
$('.cms-edit-form :input[name=ParentID]').val(newParentID);
// We only need to update the ParentID if the current page we're on is the page being moved
if ($('.cms-edit-form :input[name=ID]').val() == nodeID) {
$('.cms-edit-form :input[name=ParentID]').val(newParentID);
}
self.updateNodesFromServer([nodeID]);
},
statusCode: {