[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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user