mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
Merge pull request #1274 from kinglozzer/pulls/1273-cancreate-can-select
Ensure we have a ParentID before trying to limit children by page type (fixes #1273)
This commit is contained in:
commit
203756f94d
@ -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