GridTabWrapper is not parsing correctly booleans
https://sourceforge.net/tracker/?func=detail&atid=879332&aid=2945469&group_id=176962 Link to SF Tracker: http://sourceforge.net/support/tracker.php?aid=2945469
This commit is contained in:
parent
ea9349b5cc
commit
9583fa45dd
|
@ -102,13 +102,15 @@ public class GridTabWrapper implements InvocationHandler
|
|||
GridField field = m_gridTab.getField(propertyName);
|
||||
if (field != null)
|
||||
{
|
||||
return field.getValue();
|
||||
final Object value = field.getValue();
|
||||
return value instanceof Boolean ? value : "Y".equals(value);
|
||||
}
|
||||
//
|
||||
field = m_gridTab.getField("Is"+propertyName);
|
||||
if (field != null)
|
||||
{
|
||||
return field.getValue();
|
||||
final Object value = field.getValue();
|
||||
return value instanceof Boolean ? value : "Y".equals(value);
|
||||
}
|
||||
//
|
||||
throw new IllegalArgumentException("Method not supported - "+methodName);
|
||||
|
|
Loading…
Reference in New Issue