From 175a592c78a429df1c6c67f903c80c482cb348d7 Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Tue, 26 Feb 2013 08:00:06 +0800 Subject: [PATCH] IDEMPIERE-609 Bug with integer range process parameter. --- .../webui/apps/ProcessParameterPanel.java | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/ProcessParameterPanel.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/ProcessParameterPanel.java index 0e0f17f69c..2b263fca56 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/ProcessParameterPanel.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/ProcessParameterPanel.java @@ -438,17 +438,18 @@ public class ProcessParameterPanel extends Panel implements // Date if (result instanceof Timestamp || result2 instanceof Timestamp) { - para.setP_Date((Timestamp) result); - if (editor2 != null && result2 != null) + if (result instanceof Timestamp) + para.setP_Date((Timestamp) result); + if (editor2 != null && result2 != null && result2 instanceof Timestamp) para.setP_Date_To((Timestamp) result2); } // Integer else if (result instanceof Integer || result2 instanceof Integer) { - if (result != null) { + if (result != null && result instanceof Integer) { Integer ii = (Integer) result; para.setP_Number(ii.intValue()); } - if (editor2 != null && result2 != null) { + if (editor2 != null && result2 != null && result2 instanceof Integer) { Integer ii = (Integer) result2; para.setP_Number_To(ii.intValue()); } @@ -456,8 +457,9 @@ public class ProcessParameterPanel extends Panel implements // BigDecimal else if (result instanceof BigDecimal || result2 instanceof BigDecimal) { - para.setP_Number((BigDecimal) result); - if (editor2 != null && result2 != null) + if (result instanceof BigDecimal) + para.setP_Number((BigDecimal) result); + if (editor2 != null && result2 != null && result2 instanceof BigDecimal) para.setP_Number_To((BigDecimal) result2); } // Boolean