IDEMPIERE-2656 user preferences are not applied correctly for Yes/No

This commit is contained in:
Carlos Ruiz 2015-06-10 18:30:02 -05:00
parent f53226d73a
commit 65cd99c297
1 changed files with 5 additions and 0 deletions

View File

@ -76,6 +76,11 @@ public class ValuePreference extends Window implements EventListener<Event>
*/
public static void start (Component ref, GridField mField, Object aValue)
{
if (aValue != null && aValue instanceof Boolean)
if ((Boolean) aValue)
aValue = 'Y';
else
aValue = 'N';
start (ref, mField, aValue, null);
} // start