Skip to content

Commit

Permalink
Merge pull request '[se] Fix bug 72960' (#601) from fix/bug-72960 int…
Browse files Browse the repository at this point in the history
  • Loading branch information
K0R0L committed Jan 31, 2025
2 parents 89edd09 + bc0d674 commit a478db9
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion cell/model/WorkbookElems.js
Original file line number Diff line number Diff line change
Expand Up @@ -18240,6 +18240,12 @@ function RangeDataManagerElem(bbox, data)
"boolean[][]": 1,
"any[][]": 1
};
let supportedArrTypes = {
"number[][]": 1,
"string[][]": 1,
"boolean[][]": 1,
"any[][]": 1
};
if (argsInfo) {
let optionalCount = 0;
for (let i = 0; i < argsInfo.length; i++) {
Expand All @@ -18258,10 +18264,12 @@ function RangeDataManagerElem(bbox, data)
}

let returnInfo = options.returnInfo;
if (options.returnInfo && !supportedTypes[options.returnInfo.type]) {
if (options.returnInfo && !supportedTypes[returnInfo.type]) {
console.log("Registration custom function \"" + funcName + "\" warning. Invalid return type. The following types must be used: number, string, boolean, any, number[][], string[][], boolean[][], any[][].");
}

let returnValueType = supportedArrTypes[returnInfo.type] ? AscCommonExcel.cReturnFormulaType.array : null;

/**
* @constructor
* @extends {AscCommonExcel.cBaseFunction}
Expand All @@ -18277,6 +18285,7 @@ function RangeDataManagerElem(bbox, data)
//newFunc.prototype.argumentsMax = argumentsMax;
//argumentsType - other arguments type, need convert
newFunc.prototype.argumentsType = argumentsType;
newFunc.prototype.returnValueType = returnValueType;
newFunc.prototype.Calculate = function (arg) {
try {

Expand Down

0 comments on commit a478db9

Please sign in to comment.