mirror of
https://github.com/ONLYOFFICE/sdkjs.git
synced 2026-02-10 18:15:19 +08:00
[all] Fix bug 79273
This commit is contained in:
@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user