fix #8107: chart is not properly displayed because filter on field "No Of Funders" was replaced with funder name
This commit is contained in:
parent
1329d43ca6
commit
4d7cadbaa7
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue