mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
BUG Disallow "add page here" shortcut to avoid $allowed_children edge cases (fixes #7694)
This commit is contained in:
parent
1cd82e2db1
commit
fd8e852c92
@ -41,11 +41,6 @@
|
|||||||
if(allowedChildren.hasOwnProperty('allowedchildren-0')) {
|
if(allowedChildren.hasOwnProperty('allowedchildren-0')) {
|
||||||
menuitems['addsubpage'] = {
|
menuitems['addsubpage'] = {
|
||||||
'label': ss.i18n._t('Tree.AddSubPage'),
|
'label': ss.i18n._t('Tree.AddSubPage'),
|
||||||
'action': function(obj) {
|
|
||||||
$('.cms-container').entwine('.ss').loadPanel(ss.i18n.sprintf(
|
|
||||||
self.data('urlAddpage'), id, 'Page'
|
|
||||||
));
|
|
||||||
},
|
|
||||||
'submenu': allowedChildren
|
'submenu': allowedChildren
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user