details: https://code.openbravo.com/erp/devel/pi/rev/bfd9f58405fa changeset: 34769:bfd9f58405fa user: Asier Lostalé <asier.lostale <at> openbravo.com> date: Wed Sep 12 15:02:46 2018 +0200 summary: fixed issue 39276: ProcessSchedulingTest fails depending on system locale
In case VariablesSecureApp is initialized without setting a language, default it to en_US rather than relying on system settings. diffstat: src/org/openbravo/base/secureApp/VariablesSecureApp.java | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diffs (21 lines): diff -r 0cf455f5e717 -r bfd9f58405fa src/org/openbravo/base/secureApp/VariablesSecureApp.java --- a/src/org/openbravo/base/secureApp/VariablesSecureApp.java Wed Sep 12 13:58:11 2018 +0200 +++ b/src/org/openbravo/base/secureApp/VariablesSecureApp.java Wed Sep 12 15:02:46 2018 +0200 @@ -1,6 +1,6 @@ /* ************************************************************************************ - * Copyright (C) 2001-2017 Openbravo S.L.U. + * Copyright (C) 2001-2018 Openbravo S.L.U. * Licensed under the Apache Software License version 2.0 * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software distributed @@ -121,8 +121,7 @@ this.user = strUser; this.role = strRole; if (StringUtils.isEmpty(strLanguage)) { - this.language = System.getProperty("user.language") + "_" - + System.getProperty("user.country"); + this.language = "en_US"; } else { this.language = strLanguage; } _______________________________________________ Openbravo-commits mailing list Openbravo-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openbravo-commits