mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
Ensure we have a ParentID before trying to limit children by page type (fixes #1273)
This commit is contained in:
parent
147181e96f
commit
94697e1281
@ -52,7 +52,7 @@
|
|||||||
? (parentTree.getValue() || this.getParentID())
|
? (parentTree.getValue() || this.getParentID())
|
||||||
: null,
|
: null,
|
||||||
newClassName = metadata ? metadata.ClassName : null,
|
newClassName = metadata ? metadata.ClassName : null,
|
||||||
hintKey = (newClassName && parentMode === 'child')
|
hintKey = (newClassName && parentMode === 'child' && id)
|
||||||
? newClassName
|
? newClassName
|
||||||
: 'Root',
|
: 'Root',
|
||||||
hint = (typeof hints[hintKey] !== 'undefined') ? hints[hintKey] : null,
|
hint = (typeof hints[hintKey] !== 'undefined') ? hints[hintKey] : null,
|
||||||
|
Loading…
Reference in New Issue
Block a user