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()) ? (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,