IDEMPIERE-5588 - Multiselect Chosenbox Editor Doesn't Initialise its List when Tab First Opened (#1744)

* IDEMPIERE-5588 - Multiselect Chosenbox Editor Doesn't Initialise its List when Tab First Opened

* IDEMPIERE-5588 - pr1744 patch
This commit is contained in:
Peter Takács 2023-03-22 09:52:28 +01:00 committed by GitHub
parent 51ceaacb43
commit bf7c9792af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 29 additions and 21 deletions

View File

@ -601,8 +601,14 @@ public class MLookupFactory
if (isValueDisplayed)
lookupDisplayColumns.add("Value");
lookupDisplayColumns.add(lookupDisplayColumn != null ? lookupDisplayColumn : DisplayColumn);
s_cacheRefTable.put(key.toString(), retValue.cloneIt());
retValue.lookupDisplayColumns = lookupDisplayColumns;
if(list != null) {
retValue.lookupDisplayColumnNames = new ArrayList<>();
for (LookupDisplayColumn ldc : list) {
retValue.lookupDisplayColumnNames.add(ldc.ColumnName);
}
}
s_cacheRefTable.put(key.toString(), retValue.cloneIt());
return retValue;
} // getLookup_Table

View File

@ -212,6 +212,8 @@ public class MLookupInfo implements Serializable, Cloneable
public List<String> lookupDisplayColumns = null;
public List<String> lookupDisplayColumnNames = null;
/**
* String representation
* @return info

View File

@ -98,7 +98,7 @@ public class InfoListSubModel implements ListSubModel<ValueNamePair> {
.append(nRows);
if (lookup instanceof MLookup) {
MLookup mlookup = (MLookup) lookup;
List<String> displayColumns = mlookup.getLookupInfo().lookupDisplayColumns;
List<String> displayColumns = mlookup.getLookupInfo().lookupDisplayColumnNames;
if (displayColumns != null && displayColumns.size() > 0) {
queryBuilder.append(",")
.append("searchcolumn:")