[Context] Add test, tweak logic

Add test to verify that warnings are not shown based on
composition/location inconsistencies when editing.
This commit is contained in:
Victor Woeltjen
2016-07-14 11:16:07 -07:00
parent 1c2378b3b4
commit 1fb18c7919
2 changed files with 16 additions and 1 deletions

View File

@@ -68,7 +68,7 @@ define(
// Don't validate while editing; consistency is not
// necessarily expected due to unsaved changes.
var editor = domainObject.getCapability('editor');
if (editor && !editor.inEditContext()) {
if (!editor || !editor.inEditContext()) {
validate(domainObject.getId(), parentObject);
}