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:
Daniel Hensby 2016-11-30 12:38:51 +00:00 committed by GitHub
commit 203756f94d

View File

@ -52,7 +52,7 @@
? (parentTree.getValue() || this.getParentID())
: null,
newClassName = metadata ? metadata.ClassName : null,
hintKey = (newClassName && parentMode === 'child')
hintKey = (newClassName && parentMode === 'child' && id)
? newClassName
: 'Root',
hint = (typeof hints[hintKey] !== 'undefined') ? hints[hintKey] : null,