IDEMPIERE-5867:autocomplete show different list for table and table dir (#2028)

* IDEMPIERE-5867:autocomplete show difference list for table and table dir

* IDEMPIERE-5867:fix for IDEMPIERE-5866

test case:
    go to "Reference" window and choose for record "M_Product BOM (stocked)"
    go to "Table Validation" tab and choose "Display Value" = true
This commit is contained in:
hieplq 2023-10-01 21:04:50 +07:00 committed by GitHub
parent be42d5946d
commit e27b588754
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 1 deletions

View File

@ -604,7 +604,9 @@ public class MLookupFactory
lookupDisplayColumns.add(lookupDisplayColumn != null ? lookupDisplayColumn : DisplayColumn);
retValue.lookupDisplayColumns = lookupDisplayColumns;
if(list != null) {
retValue.lookupDisplayColumnNames = new ArrayList<>();
retValue.lookupDisplayColumnNames = new ArrayList<>();
if (isValueDisplayed)
retValue.lookupDisplayColumnNames.add("Value");
for (LookupDisplayColumn ldc : list) {
retValue.lookupDisplayColumnNames.add(ldc.ColumnName);
}
@ -856,6 +858,12 @@ public class MLookupFactory
lookupDisplayColumns.add(ldc.ColumnName);
}
lInfo.lookupDisplayColumns = lookupDisplayColumns;
if(list != null) {
lInfo.lookupDisplayColumnNames = new ArrayList<>();
for (LookupDisplayColumn ldc : list) {
lInfo.lookupDisplayColumnNames.add(ldc.ColumnName);
}
}
s_cacheRefTable.put(cacheKey.toString(), lInfo.cloneIt());
return lInfo;
} // getLookup_TableDir