diff --git a/javascript/CMSMain.AddForm.js b/javascript/CMSMain.AddForm.js index 0ebc6a80..eafd3418 100644 --- a/javascript/CMSMain.AddForm.js +++ b/javascript/CMSMain.AddForm.js @@ -45,7 +45,7 @@ id = this.find('#ParentID .TreeDropdownField').getValue(), newClassName = metadata ? metadata.ClassName : null, hintKey = newClassName ? newClassName : 'Root', - hint = (typeof hints[hintKey] != 'undefined') ? hints[key] : null; + hint = (typeof hints[hintKey] != 'undefined') ? hints[hintKey] : null; var disallowedChildren = (hint && typeof hint.disallowedChildren != 'undefined') ? hint.disallowedChildren : [], defaultChildClass = (hint && typeof hint.defaultChild != 'undefined') ? hint.defaultChild : null;