mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
MINOR Fixed reading of javascript metadata in CMSMain.AddForm.js
This commit is contained in:
parent
239ed13290
commit
89abb29047
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user