From 7d4224c35bdfbdffe0961bcf104403423a125ea8 Mon Sep 17 00:00:00 2001 From: "S. Grimault" Date: Fri, 2 Jun 2023 10:30:29 +0200 Subject: [PATCH] feat(#122): support of additional field of type "textarea" --- gn_mobile_core | 2 +- .../repository/AdditionalFieldRepositoryImpl.kt | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/gn_mobile_core b/gn_mobile_core index bffd0bb..6b84a0a 160000 --- a/gn_mobile_core +++ b/gn_mobile_core @@ -1 +1 @@ -Subproject commit bffd0bba2b40d8663fa08877b0070a2bd227f856 +Subproject commit 6b84a0af7fcf7649e6479a032cf9315794dbfc93 diff --git a/occtax/src/main/java/fr/geonature/occtax/features/nomenclature/repository/AdditionalFieldRepositoryImpl.kt b/occtax/src/main/java/fr/geonature/occtax/features/nomenclature/repository/AdditionalFieldRepositoryImpl.kt index e412e81..b8e0a53 100644 --- a/occtax/src/main/java/fr/geonature/occtax/features/nomenclature/repository/AdditionalFieldRepositoryImpl.kt +++ b/occtax/src/main/java/fr/geonature/occtax/features/nomenclature/repository/AdditionalFieldRepositoryImpl.kt @@ -167,6 +167,16 @@ class AdditionalFieldRepositoryImpl( label = it.additionalField.label ) + AdditionalField.FieldType.TEXTAREA -> EditableNomenclatureType( + type = type, + code = it.additionalField.name, + viewType = EditableNomenclatureType.ViewType.TEXT_MULTIPLE, + visible = true, + default = type != EditableNomenclatureType.Type.INFORMATION, + additionalField = true, + label = it.additionalField.label + ) + else -> { Logger.warn { "additional field of type '${it.additionalField.fieldType}' is not supported"