From c4da0e12d8debf6b7732d550282fef74060dd853 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Fri, 7 Oct 2016 16:37:18 +0300 Subject: [PATCH] [DE] Field "serverVersion" is added to revision in versions history. --- apps/documenteditor/main/app/controller/Main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/documenteditor/main/app/controller/Main.js b/apps/documenteditor/main/app/controller/Main.js index 48363b3b7..ebbf8210a 100644 --- a/apps/documenteditor/main/app/controller/Main.js +++ b/apps/documenteditor/main/app/controller/Main.js @@ -422,7 +422,7 @@ define([ var changes = version.changes, change, i; if (changes && changes.length>0) { arrVersions[arrVersions.length-1].set('docIdPrev', docIdPrev); - if (version.buildVersion && version.buildVersion == this.appOptions.buildVersion) { + if (!_.isEmpty(version.serverVersion) && version.serverVersion == this.appOptions.buildVersion) { arrVersions[arrVersions.length-1].set('changeid', changes.length-1); arrVersions[arrVersions.length-1].set('hasChanges', changes.length>1); for (i=changes.length-2; i>=0; i--) {