IDEMPIERE-4352 Jasper reports set the current language always to the login language (#149)

This commit is contained in:
Diego Ruiz 2020-06-30 14:29:02 +02:00 committed by GitHub
parent e1c064b968
commit ed3c14270e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -601,6 +601,12 @@ public class ReportStarter implements ProcessCall, ClientProcess
//params.put("LoginLogo", reportPath); //params.put("LoginLogo", reportPath);
Language currLang = Env.getLanguage(Env.getCtx()); Language currLang = Env.getLanguage(Env.getCtx());
if ((params.containsKey("AD_Language") && params.get("AD_Language") != null) ||
(params.containsKey("CURRENT_LANG") && params.get("CURRENT_LANG") != null)) {
String langInfo = params.get("AD_Language") != null ? params.get("AD_Language").toString() :
params.get("CURRENT_LANG").toString();
currLang = Language.getLanguage(langInfo);
}
String printerName = null; String printerName = null;
MPrintFormat printFormat = null; MPrintFormat printFormat = null;
PrintInfo printInfo = null; PrintInfo printInfo = null;