mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
Merge pull request #862 from sheadawson/861-hiddenhints
BUGFIX check if hints are defined for given pagetype before using.
This commit is contained in:
commit
0aae86b467
@ -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 = {},
|
||||
|
Loading…
Reference in New Issue
Block a user