From 2814aeb2492500d4adb9f9b991b43f59c5d3241b Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Sun, 22 Jan 2012 11:58:24 +0100 Subject: [PATCH] MINOR Fixed variable declaration in CMSMain.AddForm.js --- 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 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;