[bug] Fix startForceSave with forms

This commit is contained in:
Sergey Konovalov
2022-07-12 17:39:32 +03:00
parent 5b70176e6b
commit d71e0fbd59

View File

@ -783,8 +783,9 @@ let startForceSave = co.wrap(function*(docId, type, opt_userdata, opt_userId, op
return !!JSON.parse(currentValue).encrypted;
});
if (!hasEncrypted) {
startedForceSave = commonDefines.c_oAscForceSaveTypes.Form === type;
if (!startedForceSave) {
if (commonDefines.c_oAscForceSaveTypes.Form === type) {
startedForceSave = yield editorData.getForceSave(docId);
} else {
startedForceSave = yield editorData.checkAndStartForceSave(docId);
}
}