IDEMPIERE-927 Info window display -1 instead of a blank cell when pointing to AD_User table / based on Nicolas Micoud patch
This commit is contained in:
parent
e86b7ab0d6
commit
603ddd7bc0
|
@ -488,22 +488,26 @@ public abstract class InfoPanel extends Window implements EventListener<Event>,
|
|||
{
|
||||
String display = rs.getString(colIndex);
|
||||
int key = rs.getInt(colIndex+1);
|
||||
value = new KeyNamePair(key, display);
|
||||
if (! rs.wasNull()) {
|
||||
value = new KeyNamePair(key, display);
|
||||
}
|
||||
|
||||
colOffset++;
|
||||
}
|
||||
else
|
||||
{
|
||||
int key = rs.getInt(colIndex);
|
||||
WEditor editor = editorMap.get(p_layout[col].getColSQL());
|
||||
if (editor != null)
|
||||
{
|
||||
editor.setValue(key);
|
||||
value = new KeyNamePair(key, editor.getDisplayTextForGridView(key));
|
||||
}
|
||||
else
|
||||
{
|
||||
value = new KeyNamePair(key, Integer.toString(key));
|
||||
if (! rs.wasNull()) {
|
||||
WEditor editor = editorMap.get(p_layout[col].getColSQL());
|
||||
if (editor != null)
|
||||
{
|
||||
editor.setValue(key);
|
||||
value = new KeyNamePair(key, editor.getDisplayTextForGridView(key));
|
||||
}
|
||||
else
|
||||
{
|
||||
value = new KeyNamePair(key, Integer.toString(key));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue