Skip to content

Commit

Permalink
Merge pull request #862 from sheadawson/861-hiddenhints
Browse files Browse the repository at this point in the history
BUGFIX check if hints are defined for given pagetype before using.
  • Loading branch information
chillu committed Oct 3, 2013
2 parents 0437c05 + 0d2d293 commit 0aae86b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion javascript/CMSMain.Tree.js
Expand Up @@ -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 = {},
Expand Down

0 comments on commit 0aae86b

Please sign in to comment.