FR [ 2897194 ] - Advanced Zoom and RelationTypes

- the translation language should be taken form context
Please review
This commit is contained in:
redchris 2010-03-31 14:56:34 +00:00
parent a70712ab63
commit 58379717c8
1 changed files with 2 additions and 1 deletions

View File

@ -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);