Skip to content
Browse files

BUGFIX check if hints are defined for given pagetype before using. Fi…

…xes #861
  • Loading branch information...
1 parent 0437c05 commit 0d2d293c028482cab845ded70e950c784a869e6e @sheadawson sheadawson committed Oct 3, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 javascript/CMSMain.Tree.js
View
2 javascript/CMSMain.Tree.js
@@ -68,7 +68,7 @@
// Build a list for allowed children as submenu entries
var pagetype = node.data('pagetype'),
id = node.data('id'),
- disallowedChildren = hints[pagetype].disallowedChildren,
+ disallowedChildren = (typeof hints[pagetype] != 'undefined') ? hints[pagetype].disallowedChildren : null,
allowedChildren = $.extend(true, {}, hints['All']), // clone
disallowedClass,
menuAllowedChildren = {},

0 comments on commit 0d2d293

Please sign in to comment.
Something went wrong with that request. Please try again.