diff --git a/apps/documenteditor/main/app/controller/Main.js b/apps/documenteditor/main/app/controller/Main.js index 16a1bf070..cb02cb556 100644 --- a/apps/documenteditor/main/app/controller/Main.js +++ b/apps/documenteditor/main/app/controller/Main.js @@ -2285,7 +2285,8 @@ define([ if (this.changeServerVersion) return true; const cur_version = this.getApplication().getController('LeftMenu').leftMenu.getMenu('about').txtVersionNum; - if (!window.compareVersions && cur_version !== buildVersion) { + const cropped_version = cur_version.match(/^(\d+.\d+.\d+)/); + if (!window.compareVersions && cropped_version !== buildVersion) { this.changeServerVersion = true; Common.UI.warning({ title: this.titleServerVersion, diff --git a/apps/presentationeditor/main/app/controller/Main.js b/apps/presentationeditor/main/app/controller/Main.js index d2d5af115..70bacdbda 100644 --- a/apps/presentationeditor/main/app/controller/Main.js +++ b/apps/presentationeditor/main/app/controller/Main.js @@ -1870,7 +1870,8 @@ define([ if (this.changeServerVersion) return true; const cur_version = this.getApplication().getController('LeftMenu').leftMenu.getMenu('about').txtVersionNum; - if ( !window.compareVersions && cur_version !== buildVersion ) { + const cropped_version = cur_version.match(/^(\d+.\d+.\d+)/); + if (!window.compareVersions && cropped_version !== buildVersion) { this.changeServerVersion = true; Common.UI.warning({ title: this.titleServerVersion, diff --git a/apps/spreadsheeteditor/main/app/controller/Main.js b/apps/spreadsheeteditor/main/app/controller/Main.js index 40b126438..fc184abe5 100644 --- a/apps/spreadsheeteditor/main/app/controller/Main.js +++ b/apps/spreadsheeteditor/main/app/controller/Main.js @@ -2264,7 +2264,8 @@ define([ if (this.changeServerVersion) return true; const cur_version = this.getApplication().getController('LeftMenu').leftMenu.getMenu('about').txtVersionNum; - if (!window.compareVersions && cur_version !== buildVersion) { + const cropped_version = cur_version.match(/^(\d+.\d+.\d+)/); + if (!window.compareVersions && cropped_version !== buildVersion) { this.changeServerVersion = true; Common.UI.warning({ title: this.titleServerVersion,