[all] fix bug 59929

This commit is contained in:
Maxim Kadushkin 2022-11-29 12:59:24 +03:00
parent f1adaca4b7
commit dc91792801
3 changed files with 6 additions and 3 deletions

View file

@ -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,

View file

@ -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,

View file

@ -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,