[Edit] CreateAction needs to perform("save-as")

This commit is contained in:
Alex M 2016-09-15 23:14:12 +03:00
parent d1f67fd8b9
commit d3db26499c

View File

@ -90,9 +90,9 @@ define(
if (editAction) { if (editAction) {
return editAction.perform(); return editAction.perform();
} else if (editorCapability) { } else if (editorCapability) {
//otherwise, use the save action //otherwise, use the save as action
editorCapability.edit(); editorCapability.edit();
return newObject.getCapability("action").perform("save").then(onSave, onCancel); return newObject.getCapability("action").perform("save-as").then(onSave, onCancel);
} }
}; };