mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Fix new page SiteTree nesting
This commit is contained in:
parent
13df9c4163
commit
f6745a3feb
@ -250,7 +250,7 @@
|
||||
*/
|
||||
createNode: function(html, data, callback) {
|
||||
var self = this,
|
||||
parentNode = data.ParentID ? self.getNodeByID(data.ParentID) : false,
|
||||
parentNode = data.ParentID !== void 0 ? self.getNodeByID(data.ParentID) : false, // Explicitly check for undefined as 0 is a valid ParentID
|
||||
newNode = $(html);
|
||||
|
||||
// Extract the state for the new node from the properties taken from the provided HTML template.
|
||||
|
Loading…
Reference in New Issue
Block a user