IDEMPIERE-806 Cache of lookupfactory must include language

This commit is contained in:
Carlos Ruiz 2013-03-27 19:46:11 -05:00
parent 700f625011
commit 6230ac9d40
1 changed files with 5 additions and 1 deletions

View File

@ -699,7 +699,11 @@ public class MLookupFactory
int ZoomWindowPO = 0;
//try cache
StringBuilder cacheKey = new StringBuilder().append(Env.getAD_Client_ID(ctx)).append("|").append(TableName).append(".").append(KeyColumn);
StringBuilder cacheKey = new StringBuilder()
.append(Env.getAD_Client_ID(ctx)).append("|")
.append(language.getAD_Language()).append("|")
.append(TableName).append(".")
.append(KeyColumn);
if (s_cacheRefTable.containsKey(cacheKey.toString()))
return s_cacheRefTable.get(cacheKey.toString()).cloneIt();