From 001d4f4958502adf2c7f2d0f4f93d088782a0062 Mon Sep 17 00:00:00 2001 From: yflory Date: Fri, 5 Mar 2021 11:10:32 +0100 Subject: [PATCH] Fix OnlyOffice sheets --- www/common/onlyoffice/inner.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/common/onlyoffice/inner.js b/www/common/onlyoffice/inner.js index 0d04d751f..c29253f99 100644 --- a/www/common/onlyoffice/inner.js +++ b/www/common/onlyoffice/inner.js @@ -898,7 +898,7 @@ define([ var nId = id.slice(0,32); if (users.indexOf(nId) === -1) { // Offline locks: support old format - var l = typeof(locks[id]) === "object" ? getUserLock(id) : [locks[id]]; + var l = (locks[id] && !locks[id].block) ? getUserLock(id) : [locks[id]]; ooChannel.send({ type: "releaseLock", locks: l