mirror of
https://github.com/ONLYOFFICE/server.git
synced 2026-04-07 14:04:35 +08:00
[bug] Fix for missing originFormat when opening via restore button in version history
This commit is contained in:
@ -481,7 +481,7 @@ function* commandOpen(ctx, conn, cmd, outputData, opt_upsertRes, opt_bIsRestore)
|
||||
if (opt_upsertRes) {
|
||||
upsertRes = opt_upsertRes;
|
||||
} else {
|
||||
upsertRes = yield commandOpenStartPromise(ctx, cmd.getDocId(), utils.getBaseUrlByConnection(ctx, conn));
|
||||
upsertRes = yield commandOpenStartPromise(ctx, cmd.getDocId(), utils.getBaseUrlByConnection(ctx, conn), undefined, cmd.getFormat());
|
||||
}
|
||||
let bCreate = upsertRes.isInsert;
|
||||
let needAddTask = bCreate;
|
||||
|
||||
Reference in New Issue
Block a user