From 61d91207fdec6076b22fa155e3352a93efd3f751 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Mon, 29 Apr 2013 21:43:56 -0500 Subject: [PATCH] IDEMPIERE-136 Tenant base language improvement --- .../src/org/idempiere/process/ChangeBaseLanguage.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/org.adempiere.base.process/src/org/idempiere/process/ChangeBaseLanguage.java b/org.adempiere.base.process/src/org/idempiere/process/ChangeBaseLanguage.java index 485c37ff05..ca964716e1 100644 --- a/org.adempiere.base.process/src/org/idempiere/process/ChangeBaseLanguage.java +++ b/org.adempiere.base.process/src/org/idempiere/process/ChangeBaseLanguage.java @@ -77,16 +77,16 @@ public class ChangeBaseLanguage extends SvrProcess if (lang.isSystemLanguage()) throw new AdempiereUserError("Base language cannot be a system language"); - MLanguage baselang = MLanguage.get(getCtx(), Language.getBaseAD_Language()); - if (baselang.equals(p_Language)) + if (Language.getBaseAD_Language().equals(p_Language)) throw new AdempiereUserError("Same base language"); // Disable the base flag on the actual + MLanguage baselang = MLanguage.get(getCtx(), Language.getBaseAD_Language()); baselang.setIsBaseLanguage(false); baselang.saveEx(get_TrxName()); // Enable base flag on new language - lang.setIsBaseLanguage(false); + lang.setIsBaseLanguage(true); lang.saveEx(get_TrxName()); Language.setBaseLanguage(p_Language);