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:
Carlos Ruiz 2020-11-21 00:49:57 +01:00 committed by GitHub
parent 62bf1359ca
commit 611e1bbb8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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