You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by nm...@apache.org on 2022/02/03 10:07:49 UTC
[ofbiz-framework] 02/02: Fixed: Attribute default-field-type hidden doesn't work for auto-fields-service element (OFBIZ-12555)
This is an automated email from the ASF dual-hosted git repository.
nmalin pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git
commit c6e44d143fcd96f58801aeec7b3894c5fe809401
Author: Nicolas Malin <ni...@nereide.fr>
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",