[all] Fix bug 79273

This commit is contained in:
Angsar
2026-02-05 17:33:28 +05:00
parent b979998aed
commit 45a321bc4d

View File

@ -1186,6 +1186,21 @@
return;
}
if (t.type === Asc.EDataValidationType.List && typeof _formula.text === "string" && _formula.text[0] !== "=") {
const uiSep = AscCommon.FormulaSeparators.functionArgumentSeparator;
const defSep = AscCommon.FormulaSeparators.functionArgumentSeparatorDef;
if (uiSep && defSep && uiSep !== defSep) {
_formula.text = _formula.text
.split(uiSep)
.map(function(s) {
return s.trim();
})
.filter(Boolean)
.join(defSep);
}
}
if (!isFormula) {
_formula.text = addQuotes(_formula.text);
} else if (_tempFormula && _tempFormula._formula) {