Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 89abb29047371068d7170a1880750231af5ebda8 1 parent 239ed13
@chillu chillu authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  javascript/CMSMain.AddForm.js
View
2  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;
Please sign in to comment.
Something went wrong with that request. Please try again.