[all] fix bug 59929

This commit is contained in:
Maxim Kadushkin 2022-11-30 19:42:34 +03:00
parent 5b587c1c13
commit ca5738bd99
3 changed files with 3 additions and 3 deletions

View file

@ -2289,7 +2289,7 @@ define([
const cur_version = this.getApplication().getController('LeftMenu').leftMenu.getMenu('about').txtVersionNum;
const cropped_version = cur_version.match(/^(\d+.\d+.\d+)/);
if (!window.compareVersions && cropped_version !== buildVersion) {
if (!window.compareVersions && (!cropped_version || cropped_version[1] !== buildVersion)) {
this.changeServerVersion = true;
Common.UI.warning({
title: this.titleServerVersion,

View file

@ -1874,7 +1874,7 @@ define([
const cur_version = this.getApplication().getController('LeftMenu').leftMenu.getMenu('about').txtVersionNum;
const cropped_version = cur_version.match(/^(\d+.\d+.\d+)/);
if (!window.compareVersions && cropped_version !== buildVersion) {
if (!window.compareVersions && (!cropped_version || cropped_version[1] !== buildVersion)) {
this.changeServerVersion = true;
Common.UI.warning({
title: this.titleServerVersion,

View file

@ -2268,7 +2268,7 @@ define([
const cur_version = this.getApplication().getController('LeftMenu').leftMenu.getMenu('about').txtVersionNum;
const cropped_version = cur_version.match(/^(\d+.\d+.\d+)/);
if (!window.compareVersions && cropped_version !== buildVersion) {
if (!window.compareVersions && (!cropped_version || cropped_version[1] !== buildVersion)) {
this.changeServerVersion = true;
Common.UI.warning({
title: this.titleServerVersion,