From 63c57b944c859eff59abdd7ad173b0720edf7ed6 Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Wed, 2 Apr 2014 06:47:46 +0800 Subject: [PATCH] 1003869 Form to captured process parameter for scheduler. IDEMPIERE-1486 / Fixed captured to value for non-range parameter as well. --- .../org/adempiere/webui/apps/form/WProcessParameter.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/form/WProcessParameter.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/form/WProcessParameter.java index 8863bdde8b..d098ba74c7 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/form/WProcessParameter.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/form/WProcessParameter.java @@ -73,21 +73,21 @@ public class WProcessParameter implements IFormController { if (DisplayType.isNumeric(processPara.getAD_Reference_ID())) { if (para.getP_Number() != null) schedulerPara.setParameterDefault(para.getP_Number().toString()); - if (para.getP_Number_To() != null) + if (processPara.isRange() && para.getP_Number_To() != null) schedulerPara.setParameterToDefault(para.getP_Number_To().toString()); } else if (DisplayType.isID(processPara.getAD_Reference_ID())) { if (para.getP_Number() != null) schedulerPara.setParameterDefault(Integer.toString(para.getP_Number().intValue())); - if (para.getP_Number_To() != null) + if (processPara.isRange() && para.getP_Number_To() != null) schedulerPara.setParameterToDefault(Integer.toString(para.getP_Number_To().intValue())); } else if (DisplayType.isDate(processPara.getAD_Reference_ID())) { if (para.getP_Date() != null) schedulerPara.setParameterDefault(para.getP_Date().toString()); - if (para.getP_Date_To() != null) + if (processPara.isRange() && para.getP_Date_To() != null) schedulerPara.setParameterToDefault(para.getP_Date_To().toString()); } else { schedulerPara.setParameterDefault(para.getP_String()); - if (para.getP_String_To() != null) + if (processPara.isRange() && para.getP_String_To() != null) schedulerPara.setParameterToDefault(para.getP_String_To()); } if (!Util.isEmpty(para.getInfo())) {