Merge pull request 'fix/bug79770' (#961) from fix/bug79770 into release/v9.3.0

This commit is contained in:
Maxim Kadushkin
2026-02-05 12:27:24 +00:00
2 changed files with 12 additions and 2 deletions

View File

@ -185,9 +185,13 @@ define([], function () { 'use strict';
var isvalid = true,
txtError = '',
value;
value = this.api.asc_checkDataRange(Asc.c_oAscSelectionDialogType.Chart, this.txtCellRef.getValue(), true);
value = this.api.asc_checkDataRange(Asc.c_oAscSelectionDialogType.Solver_CellReference, this.txtCellRef.getValue(), true);
if (value != Asc.c_oAscError.ID.No) {
txtError = this.txtNotValidRef;
if (value === Asc.c_oAscError.ID.TooManyCells) {
txtError = this.textTooManyCells;
} else {
txtError = this.txtNotValidRef;
}
isvalid = false;
}
if (!isvalid) {
@ -204,6 +208,10 @@ define([], function () { 'use strict';
if (value !== Asc.c_oAscError.ID.No) {
if (value === Asc.c_oAscError.ID.DataConstraintError) {
txtError = this.textDataConstraint;
} else if (value === Asc.c_oAscError.ID.TooManyCells) {
txtError = this.textTooManyCells;
} else if (value === Asc.c_oAscError.ID.UnequalCellsNumber) {
txtError = this.textUnequalCellsNumber;
}
isvalid = false;
}

View File

@ -2791,6 +2791,8 @@
"SSE.Views.ConstraintDialog.txtNotValidRef": "Cell reference is empty or contents are not valid.",
"SSE.Views.ConstraintDialog.txtTitle": "Add constraint",
"SSE.Views.ConstraintDialog.txtTitleChange": "Change constraint",
"SSE.Views.ConstraintDialog.textTooManyCells": "Too many cells",
"SSE.Views.ConstraintDialog.textUnequalCellsNumber": "Unequal number of cells in Cell Reference and Constraint",
"SSE.Views.CreatePivotDialog.textDataRange": "Source data range",
"SSE.Views.CreatePivotDialog.textDestination": "Choose where to place the table",
"SSE.Views.CreatePivotDialog.textExist": "Existing sheet",