From 37dbfcceb00bdfcd28fe89fc8ff82a4fb6071c35 Mon Sep 17 00:00:00 2001 From: Jacques Le Roux Date: Fri, 23 Oct 2015 11:35:29 +0000 Subject: [PATCH] A patch from Christian Carlow for "Form widget does not render range find fields for fixed-point" https://issues.apache.org/jira/browse/OFBIZ-6443 A form widget with auto-entity-fields for OrderItem will render the quantity fields as text find fields but the prices as range find fields. The quantity find field should match the price range find capability. This patch adds "fixed-point" to the condition that renders RangeFindField for induceFieldInfoFromEntityField, with support RangeFindField rendering for currency-precise fields also. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1710177 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/org/ofbiz/widget/model/ModelFormFieldBuilder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/widget/src/org/ofbiz/widget/model/ModelFormFieldBuilder.java b/framework/widget/src/org/ofbiz/widget/model/ModelFormFieldBuilder.java index 094079dd20..dc5508747f 100644 --- a/framework/widget/src/org/ofbiz/widget/model/ModelFormFieldBuilder.java +++ b/framework/widget/src/org/ofbiz/widget/model/ModelFormFieldBuilder.java @@ -533,7 +533,7 @@ public class ModelFormFieldBuilder { Integer.valueOf(250), null); this.setFieldInfo(textField); } else if ("floating-point".equals(modelField.getType()) || "currency-amount".equals(modelField.getType()) - || "numeric".equals(modelField.getType())) { + || "numeric".equals(modelField.getType()) || "fixed-point".equals(modelField.getType()) || "currency-precise".equals(modelField.getType())) { ModelFormField.RangeFindField textField = new ModelFormField.RangeFindField(FieldInfo.SOURCE_AUTO_ENTITY, 6, null); this.setFieldInfo(textField); } else if ("date-time".equals(modelField.getType()) || "date".equals(modelField.getType())