IDEMPIERE-4352 Jasper reports set the current language always to the login language (#149)
This commit is contained in:
parent
e1c064b968
commit
ed3c14270e
|
@ -601,6 +601,12 @@ public class ReportStarter implements ProcessCall, ClientProcess
|
|||
//params.put("LoginLogo", reportPath);
|
||||
|
||||
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;
|
||||
MPrintFormat printFormat = null;
|
||||
PrintInfo printInfo = null;
|
||||
|
|
Loading…
Reference in New Issue