fix #8107: chart is not properly displayed because filter on field "No Of Funders" was replaced with funder name

This commit is contained in:
argirok 2022-10-03 15:29:39 +03:00 committed by k.triantafyllou
parent 1329d43ca6
commit 4d7cadbaa7
1 changed files with 2 additions and 1 deletions

View File

@ -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) {