[Context] Suppress warnings while editing
Don't expect consistency between composition and location fields while an object is being edited; this avoids benign warnings being logged. Fixes #624
This commit is contained in:
@@ -65,7 +65,13 @@ define(
|
||||
* which should appear as the contextual parent
|
||||
*/
|
||||
return function (domainObject, parentObject) {
|
||||
// Don't validate while editing; consistency is not
|
||||
// necessarily expected due to unsaved changes.
|
||||
var editor = domainObject.getCapability('editor');
|
||||
if (editor && !editor.inEditContext()) {
|
||||
validate(domainObject.getId(), parentObject);
|
||||
}
|
||||
|
||||
return new ContextualDomainObject(domainObject, parentObject);
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user