[master | DONE | FIXED]: IndicatorController.java: In method "parameterMapping()" set in parameter index_shortName the shortname of the stakeholder, not the name.

This commit is contained in:
Konstantina Galouni 2023-12-13 15:10:13 +02:00
parent 9d585f12e0
commit 420e6f46fb
1 changed files with 5 additions and 1 deletions

View File

@ -505,7 +505,11 @@ public class IndicatorController {
if (indicatorPath.getParameters().containsKey("index_name")) {
indicatorPath.getParameters().put("index_name", stakeholder.getIndex_name());
} else if (indicatorPath.getParameters().containsKey("index_shortName")) {
indicatorPath.getParameters().put("index_shortName", stakeholder.getIndex_name().toLowerCase());
if(stakeholder.getIndex_shortName() != null) {
indicatorPath.getParameters().put("index_shortName", stakeholder.getIndex_shortName().toLowerCase());
} else {
indicatorPath.getParameters().remove("index_shortName");
}
} else if (indicatorPath.getParameters().containsKey("index_id")) {
indicatorPath.getParameters().put("index_id", stakeholder.getIndex_id());
}