Rollback changes, the pool connection is not working on multi tenant setup

This commit is contained in:
Victor Romero 2026-01-30 21:17:13 -06:00
parent 90a111e6b8
commit d64c810726

View File

@ -81,7 +81,7 @@ public class PentahoReportingProcessServiceImpl implements ReportingProcessServi
@Value("${FINERACT_PENTAHO_REPORTS_PATH}")
private String fineractPentahoBaseDir;
@Value("${FINERACT_PENTAHO_REPORTS_LOCALE}")
private String fineractPentahoLocale;
@ -183,13 +183,12 @@ public class PentahoReportingProcessServiceImpl implements ReportingProcessServi
setConnectionDetail(compoundDataFactory.get(0));
final var reportEnvironment = (DefaultReportEnvironment) masterReport.getReportEnvironment();
//Set Locale for the report
if(fineractPentahoLocale !=null){
Locale localeReport = new Locale.Builder().setLanguageTag(fineractPentahoLocale).build();
reportEnvironment.setLocale(localeReport);
}
else if (locale != null) {
// Set Locale for the report
if (fineractPentahoLocale != null) {
Locale localeReport = new Locale.Builder().setLanguageTag(fineractPentahoLocale).build();
reportEnvironment.setLocale(localeReport);
} else if (locale != null) {
reportEnvironment.setLocale(locale);
}