IDEMPIERE-4803 Related Info Window Display Bug (#701)

* IDEMPIERE-4803 Related Info Window Display Bug

* IDEMPIERE-4803 Related Info Window check for CreatedBy and UpdatedBy
This commit is contained in:
igorpojzl 2021-06-01 07:45:31 +02:00 committed by GitHub
parent b914083d31
commit 01d199755b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -919,7 +919,7 @@ public class InfoWindow extends InfoPanel implements ValueChangeListener, EventL
if (! colSQL.toUpperCase().contains(" AS "))
colSQL += " AS " + infoColumn.getColumnName();
editorMap.put(colSQL, editor);
Class<?> colClass = columnName.endsWith("_ID") ? KeyNamePair.class : String.class;
Class<?> colClass = columnName.endsWith("_ID") || columnName.equals("CreatedBy") || columnName.equals("UpdatedBy") ? KeyNamePair.class : String.class;
ColumnInfo columnInfo = new ColumnInfo(infoColumn.getNameTrl(), colSQL, colClass, (String)null, infoColumn.isReadOnly() || haveNotProcess);
return columnInfo;
}
@ -2083,6 +2083,7 @@ public class InfoWindow extends InfoPanel implements ValueChangeListener, EventL
}
columnInfo.setColDescription(infoColumn.getDescriptionTrl());
columnInfo.setGridField(getGridField(infoColumn));
columnInfo.setAD_Reference_ID(infoColumn.getAD_Reference_ID());
list.add(columnInfo);
}