This is an automated email from the ASF dual-hosted git repository.
nmalin pushed a commit to branch release22.01
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git
The following commit(s) were added to refs/heads/release22.01 by this push:
new bc91eed Fixed: Attribute default-field-type hidden doesn't work for
auto-fields-service element (OFBIZ-12555)
bc91eed is described below
commit bc91eedebed7aca609bd1587f0c6c5e24f1b27a3
Author: Nicolas Malin <[email protected]>
AuthorDate: Thu Feb 3 09:57:06 2022 +0100
Fixed: Attribute default-field-type hidden doesn't work for
auto-fields-service element (OFBIZ-12555)
Fix the compilation error on build bot that not support java11, downgrade
the code to java8
---
.../main/java/org/apache/ofbiz/widget/model/ModelFormFieldBuilder.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/framework/widget/src/main/java/org/apache/ofbiz/widget/model/ModelFormFieldBuilder.java
b/framework/widget/src/main/java/org/apache/ofbiz/widget/model/ModelFormFieldBuilder.java
index cfbefab..2501af1 100644
---
a/framework/widget/src/main/java/org/apache/ofbiz/widget/model/ModelFormFieldBuilder.java
+++
b/framework/widget/src/main/java/org/apache/ofbiz/widget/model/ModelFormFieldBuilder.java
@@ -900,7 +900,7 @@ public class ModelFormFieldBuilder {
* @return
*/
private String computeFieldTypeToUse(String modelParamType) {
- final Map<String, String> switchType = Map.of("Double", "numeric",
+ final Map<String, String> switchType = UtilMisc.toMap("Double",
"numeric",
"Float", "numeric",
"Long", "numeric",
"Integer", "numeric",