diff --git a/bi/case.js b/bi/case.js index 4916f30f9a..8ec3cc70b8 100644 --- a/bi/case.js +++ b/bi/case.js @@ -4023,7 +4023,7 @@ BI.FormulaComboTrigger = BI.inherit(BI.Widget, { var str = item.match(fieldRegx); if (BI.isNotEmptyArray(str)) { var id = str[0].substring(2, item.length - 1); - var item = BI.find(self.options.items, function (i, item) { + var item = BI.find(BI.flatten(self.options.items), function (i, item) { return id === item.value; }); formulaString = formulaString + item.text; diff --git a/docs/case.js b/docs/case.js index 4916f30f9a..8ec3cc70b8 100644 --- a/docs/case.js +++ b/docs/case.js @@ -4023,7 +4023,7 @@ BI.FormulaComboTrigger = BI.inherit(BI.Widget, { var str = item.match(fieldRegx); if (BI.isNotEmptyArray(str)) { var id = str[0].substring(2, item.length - 1); - var item = BI.find(self.options.items, function (i, item) { + var item = BI.find(BI.flatten(self.options.items), function (i, item) { return id === item.value; }); formulaString = formulaString + item.text; diff --git a/src/case/combo/formulacombo/trigger.formulacombo.js b/src/case/combo/formulacombo/trigger.formulacombo.js index 79ebc72d51..276a9d46ab 100644 --- a/src/case/combo/formulacombo/trigger.formulacombo.js +++ b/src/case/combo/formulacombo/trigger.formulacombo.js @@ -36,7 +36,7 @@ BI.FormulaComboTrigger = BI.inherit(BI.Widget, { var str = item.match(fieldRegx); if (BI.isNotEmptyArray(str)) { var id = str[0].substring(2, item.length - 1); - var item = BI.find(self.options.items, function (i, item) { + var item = BI.find(BI.flatten(self.options.items), function (i, item) { return id === item.value; }); formulaString = formulaString + item.text;