From 2ac176eeec89576b6fd2b1f3a2c401c4d13bb5e8 Mon Sep 17 00:00:00 2001 From: yflory Date: Mon, 21 Jan 2019 16:54:31 +0100 Subject: [PATCH] Share the correct index in onlyoffice messages --- www/common/onlyoffice/inner.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/common/onlyoffice/inner.js b/www/common/onlyoffice/inner.js index e5d1692ca..89f046c69 100644 --- a/www/common/onlyoffice/inner.js +++ b/www/common/onlyoffice/inner.js @@ -384,12 +384,12 @@ define([ // XXX lock send({ type: "unSaveLock", - index: -1, + index: ooChannel.cpIndex, }); rtChannel.sendMsg({ type: "saveChanges", changes: parseChanges(obj.changes), - changesIndex: 2, + changesIndex: ooChannel.cpIndex || 0, locks: [], // XXX take from userdoc? excelAdditionalInfo: null }, null, function (err, hash) {