mirror of
https://github.com/openMF/fineract-pentaho.git
synced 2026-02-06 03:06:51 +00:00
Rollback changes, the pool connection is not working on multi tenant setup
This commit is contained in:
parent
90a111e6b8
commit
d64c810726
@ -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);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user