IDEMPIERE-806 Cache of lookupfactory must include language. Fixed NPE due to language parameter is now mandatory.

This commit is contained in:
Heng Sin Low 2013-03-28 17:45:54 +08:00
parent e4acef2dc4
commit 15ca8bd67c
1 changed files with 1 additions and 1 deletions

View File

@ -297,7 +297,7 @@ public class InfoWindow extends InfoPanel implements ValueChangeListener, EventL
String columnName = gridField.getColumnName();
int AD_Reference_Value_ID = 0;
String validationCode = "";
MLookupInfo lookupInfo = MLookupFactory.getLookupInfo(Env.getCtx(), p_WindowNo, 0, infoColumn.getAD_Reference_ID(), null, columnName, AD_Reference_Value_ID, false, validationCode);
MLookupInfo lookupInfo = MLookupFactory.getLookupInfo(Env.getCtx(), p_WindowNo, 0, infoColumn.getAD_Reference_ID(), Env.getLanguage(Env.getCtx()), columnName, AD_Reference_Value_ID, false, validationCode);
String displayColumn = lookupInfo.DisplayColumn;
int index = infoColumn.getSelectClause().indexOf(".");