IDEMPIERE-2787 Request Action Escalated Issue

This commit is contained in:
Carlos Ruiz 2015-08-24 17:13:56 -05:00
parent 8fbab46917
commit b8671ca91e
1 changed files with 10 additions and 3 deletions

View File

@ -238,10 +238,17 @@ public class RequestEventHandler extends AbstractEventHandler implements Managed
if (r.is_ValueChanged(columnName))
{
Object value = r.get_ValueOld(columnName);
if (value == null)
if (value == null) {
ra.addNullColumn(columnName);
else
} else {
if (value instanceof Boolean
&& ( MRequestAction.COLUMNNAME_IsEscalated.equals(columnName)
|| MRequestAction.COLUMNNAME_IsSelfService.equals(columnName))) {
ra.set_ValueNoCheck(columnName, ((Boolean)value).booleanValue() ? "Y" : "N");
} else {
ra.set_ValueNoCheck(columnName, value);
}
}
r.setIsChanged(true);
return true;
}