mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +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')) {
|
||||
menuitems['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
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user