A patch from Christian Carlow for "Form widget <auto-fields-entity default-field-type="find"/> 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
This commit is contained in:
Jacques Le Roux
2015-10-23 11:35:29 +00:00
parent e48fe0b23a
commit 37dbfcceb0
@@ -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())