Skip to content

Commit

Permalink
[bug] Fix missing "update version" dialog; Fix bug 69761
Browse files Browse the repository at this point in the history
  • Loading branch information
konovalovsergey committed Aug 29, 2024
1 parent 98f7310 commit bf73573
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions DocService/sources/DocsCoServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -2748,6 +2748,7 @@ exports.install = function(server, callbackFunction) {
return;
} else {
modifyConnectionEditorToView(ctx, conn);
conn.isCiriticalError = true;
}
} else if (commonDefines.FileStatus.None === status && conn.encrypted) {
//ok
Expand Down
6 changes: 5 additions & 1 deletion DocService/sources/canvasservice.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,11 @@ async function getOutputData(ctx, cmd, outputData, key, optConn, optAdditionalOu
if(commonDefines.FileStatus.Ok === status) {
outputData.setStatus('ok');
} else if (optConn && (optConn.user.view || optConn.isCloseCoAuthoring)) {
outputData.setStatus('ok');
if (optConn.isCiriticalError) {
outputData.setStatus(constants.FILE_STATUS_UPDATE_VERSION);
} else {
outputData.setStatus('ok');
}
} else if (commonDefines.FileStatus.SaveVersion === status ||
(!opt_bIsRestore && commonDefines.FileStatus.UpdateVersion === status &&
Date.now() - statusInfo * 60000 > tenExpUpdateVersionStatus)) {
Expand Down

0 comments on commit bf73573

Please sign in to comment.