From 58379717c8b7cb7ff46192d90a34d049289a035c Mon Sep 17 00:00:00 2001 From: redchris Date: Wed, 31 Mar 2010 14:56:34 +0000 Subject: [PATCH] FR [ 2897194 ] - Advanced Zoom and RelationTypes - the translation language should be taken form context Please review --- base/src/org/adempiere/model/MRelationType.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/base/src/org/adempiere/model/MRelationType.java b/base/src/org/adempiere/model/MRelationType.java index 9779047c88..20ca69b6aa 100644 --- a/base/src/org/adempiere/model/MRelationType.java +++ b/base/src/org/adempiere/model/MRelationType.java @@ -92,7 +92,7 @@ public class MRelationType extends X_AD_RelationType implements IZoomProvider { final static String SQL_WINDOW_NAME = "SELECT Name FROM AD_Window WHERE AD_WINDOW_ID=?"; - final static String SQL_WINDOW_NAME_TRL = "SELECT Name FROM AD_Window_Trl WHERE AD_WINDOW_ID=?"; + final static String SQL_WINDOW_NAME_TRL = "SELECT Name FROM AD_Window_Trl WHERE AD_WINDOW_ID=? AND AD_LANGUAGE=?"; /** * @@ -205,6 +205,7 @@ public class MRelationType extends X_AD_RelationType implements IZoomProvider { ResultSet rs = null; try { pstmt.setInt(1, windowId); + pstmt.setString(2, Env.getAD_Language(Env.getCtx())); rs = pstmt.executeQuery(); if (rs.next()) { return rs.getString(1);