From b8671ca91e7abd1aafa33eda9a2a769702bcb18c Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Mon, 24 Aug 2015 17:13:56 -0500 Subject: [PATCH] IDEMPIERE-2787 Request Action Escalated Issue --- .../adempiere/base/event/RequestEventHandler.java | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/org.adempiere.base/src/org/adempiere/base/event/RequestEventHandler.java b/org.adempiere.base/src/org/adempiere/base/event/RequestEventHandler.java index 6aea115c88..d961215868 100644 --- a/org.adempiere.base/src/org/adempiere/base/event/RequestEventHandler.java +++ b/org.adempiere.base/src/org/adempiere/base/event/RequestEventHandler.java @@ -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 - ra.set_ValueNoCheck(columnName, value); + } 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; }