Permalink
Browse files

MINOR Fixed reading of javascript metadata in CMSMain.AddForm.js

  • Loading branch information...
1 parent 239ed13 commit 89abb29047371068d7170a1880750231af5ebda8 @chillu chillu committed Oct 29, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 javascript/CMSMain.AddForm.js
@@ -42,7 +42,7 @@
var hints = this.find('.hints').data('hints'),
metadata = this.find('#ParentID .TreeDropdownField').data('metadata'),
id = this.find('#ParentID .TreeDropdownField').getValue(),
- newClassName = metadata[0].ClassName,
+ newClassName = metadata.ClassName,
disallowedChildren = hints[newClassName ? newClassName : 'Root'].disallowedChildren || [],
defaultChildClass = hints[newClassName ? newClassName : 'Root'].defaultChild || null;

0 comments on commit 89abb29

Please sign in to comment.