Skip to content

Commit

Permalink
feat(#122): support of additional field of type "textarea"
Browse files Browse the repository at this point in the history
  • Loading branch information
sgrimault committed Jun 2, 2023
1 parent 0d94f0b commit 7d4224c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gn_mobile_core
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 7d4224c

Please sign in to comment.