Tweaked object creation

This commit is contained in:
Henry 2015-12-09 20:57:23 -08:00
parent 708aa7dcba
commit 322db5a0f5

View File

@ -98,7 +98,7 @@ define(
model.location = parentObject.getId();
});
if (countEditableViews(editableObject) > 0) {
if (countEditableViews(editableObject) > 0 && editableObject.hasCapability('composition')) {
this.navigationService.setNavigation(editableObject);
} else {
return editableObject.getCapability('action').perform('save');