IDEMPIERE-2672 Region field in Tax Rate window default OR when default country is not USA / IDEMPIERE-2880 <1000000> IDs in webui problem

This commit is contained in:
Carlos Ruiz 2015-10-11 12:42:40 -05:00
parent 3f7ac44fec
commit 5da36c71f6
1 changed files with 6 additions and 1 deletions

View File

@ -402,7 +402,11 @@ public class MLookupFactory
} else { } else {
lang = language.getAD_Language(); lang = language.getAD_Language();
} }
StringBuilder key = new StringBuilder().append(Env.getAD_Client_ID(ctx)).append("|").append(lang).append("|").append(String.valueOf(AD_Reference_Value_ID)); StringBuilder key = new StringBuilder()
.append(Env.getAD_Client_ID(ctx)).append("|")
.append(Env.getAD_User_ID(ctx)).append("|")
.append(lang).append("|")
.append(String.valueOf(AD_Reference_Value_ID));
MLookupInfo retValue = (MLookupInfo)s_cacheRefTable.get(key.toString()); MLookupInfo retValue = (MLookupInfo)s_cacheRefTable.get(key.toString());
if (retValue != null) if (retValue != null)
{ {
@ -748,6 +752,7 @@ public class MLookupFactory
//try cache //try cache
StringBuilder cacheKey = new StringBuilder() StringBuilder cacheKey = new StringBuilder()
.append(Env.getAD_Client_ID(ctx)).append("|") .append(Env.getAD_Client_ID(ctx)).append("|")
.append(Env.getAD_User_ID(ctx)).append("|")
.append(language.getAD_Language()).append("|") .append(language.getAD_Language()).append("|")
.append(TableName).append(".") .append(TableName).append(".")
.append(KeyColumn); .append(KeyColumn);