From f6745a3febc15cf679c2065f362e53a198dea084 Mon Sep 17 00:00:00 2001 From: David Craig Date: Tue, 23 Jun 2015 16:53:38 +1200 Subject: [PATCH] Fix new page SiteTree nesting --- admin/javascript/LeftAndMain.Tree.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/javascript/LeftAndMain.Tree.js b/admin/javascript/LeftAndMain.Tree.js index 625a4b353..2eef76fd0 100644 --- a/admin/javascript/LeftAndMain.Tree.js +++ b/admin/javascript/LeftAndMain.Tree.js @@ -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.