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:
parent
51ceaacb43
commit
bf7c9792af
|
@ -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
|
||||
|
||||
|
|
|
@ -212,6 +212,8 @@ public class MLookupInfo implements Serializable, Cloneable
|
|||
|
||||
public List<String> lookupDisplayColumns = null;
|
||||
|
||||
public List<String> lookupDisplayColumnNames = null;
|
||||
|
||||
/**
|
||||
* String representation
|
||||
* @return info
|
||||
|
|
|
@ -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:")
|
||||
|
|
Loading…
Reference in New Issue