IDEMPIERE-4560 Autocomplete fills the value to be suggested to the user with the cache and does not support multilanguage (#397)
Fixes the problem about caching results from previously used language, breaking the usage of base language when another language was used previously
This commit is contained in:
parent
62bf1359ca
commit
611e1bbb8f
|
@ -643,7 +643,7 @@ public final class MLookup extends Lookup implements Serializable
|
|||
public NamePair[] getDirect(Object[] keys)
|
||||
{
|
||||
List<NamePair> list = new ArrayList<NamePair>();
|
||||
String cacheKey = m_info.TableName+"|"+m_info.KeyColumn;
|
||||
String cacheKey = m_info.TableName+"|"+m_info.KeyColumn+"|"+m_info.AD_Reference_Value_ID+"|"+Env.getAD_Language(Env.getCtx());
|
||||
boolean isNumber = m_info.KeyColumn.endsWith("_ID");
|
||||
CCache<Integer, KeyNamePair> knpCache = null;
|
||||
CCache<String, ValueNamePair> vnpCache = null;
|
||||
|
|
Loading…
Reference in New Issue