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,13 +488,16 @@ public abstract class InfoPanel extends Window implements EventListener<Event>,
|
||||||
{
|
{
|
||||||
String display = rs.getString(colIndex);
|
String display = rs.getString(colIndex);
|
||||||
int key = rs.getInt(colIndex+1);
|
int key = rs.getInt(colIndex+1);
|
||||||
|
if (! rs.wasNull()) {
|
||||||
value = new KeyNamePair(key, display);
|
value = new KeyNamePair(key, display);
|
||||||
|
}
|
||||||
|
|
||||||
colOffset++;
|
colOffset++;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
int key = rs.getInt(colIndex);
|
int key = rs.getInt(colIndex);
|
||||||
|
if (! rs.wasNull()) {
|
||||||
WEditor editor = editorMap.get(p_layout[col].getColSQL());
|
WEditor editor = editorMap.get(p_layout[col].getColSQL());
|
||||||
if (editor != null)
|
if (editor != null)
|
||||||
{
|
{
|
||||||
|
@ -507,6 +510,7 @@ public abstract class InfoPanel extends Window implements EventListener<Event>,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else if (c == ValueNamePair.class)
|
else if (c == ValueNamePair.class)
|
||||||
{
|
{
|
||||||
String key = rs.getString(colIndex);
|
String key = rs.getString(colIndex);
|
||||||
|
|
Loading…
Reference in New Issue