From 1a13bd942c823705418067fa2c4c32b27aaa0efa Mon Sep 17 00:00:00 2001 From: argirok Date: Mon, 3 Oct 2022 15:29:39 +0300 Subject: [PATCH] fix #8107: chart is not properly displayed because filter on field "No Of Funders" was replaced with funder name --- src/app/utils/indicator-utils.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/utils/indicator-utils.ts b/src/app/utils/indicator-utils.ts index e6da0a7..734924d 100644 --- a/src/app/utils/indicator-utils.ts +++ b/src/app/utils/indicator-utils.ts @@ -675,7 +675,8 @@ export class IndicatorUtils { } for (let filter of query["query"]["filters"]) { for (let gfilter of filter["groupFilters"]) { - if (gfilter["field"].indexOf(" funder") != -1) {//new statistcs schema + //ignore field No Of Funders + if (gfilter["field"].indexOf(" funder") != -1 && gfilter["field"].indexOf(" funders") == -1) {//new statistcs schema gfilter["values"][0] = ChartHelper.prefix + "index_name" + ChartHelper.suffix; indicatorPath.parameters["index_name"] = stakeholder.index_name; } else if (gfilter["field"].indexOf(".funder") != -1) {