mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Merge pull request #4674 from ss23/parentidfix
Fix page reordering bug with ParentID
This commit is contained in:
commit
421d1b53b0
@ -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: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user