From 94697e1281e5cdfa9f92209a17a894379b870482 Mon Sep 17 00:00:00 2001 From: Loz Calver Date: Thu, 3 Sep 2015 14:41:05 +0100 Subject: [PATCH] Ensure we have a ParentID before trying to limit children by page type (fixes #1273) --- javascript/CMSMain.AddForm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/javascript/CMSMain.AddForm.js b/javascript/CMSMain.AddForm.js index 2681d7ab..683abcc0 100644 --- a/javascript/CMSMain.AddForm.js +++ b/javascript/CMSMain.AddForm.js @@ -52,7 +52,7 @@ ? (parentTree.getValue() || this.getParentID()) : null, newClassName = metadata ? metadata.ClassName : null, - hintKey = (newClassName && parentMode === 'child') + hintKey = (newClassName && parentMode === 'child' && id) ? newClassName : 'Root', hint = (typeof hints[hintKey] !== 'undefined') ? hints[hintKey] : null,