From b1a47339417e57740256e5dc3ff5b561d59dc643 Mon Sep 17 00:00:00 2001 From: connoratrug Date: Fri, 25 Oct 2024 16:16:05 +0200 Subject: [PATCH] fix: 4398 save row with required file flield Closes #4398 --- .../src/main/java/org/molgenis/emx2/utils/TypeUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/molgenis-emx2/src/main/java/org/molgenis/emx2/utils/TypeUtils.java b/backend/molgenis-emx2/src/main/java/org/molgenis/emx2/utils/TypeUtils.java index 6372456c4f..955f563cf8 100644 --- a/backend/molgenis-emx2/src/main/java/org/molgenis/emx2/utils/TypeUtils.java +++ b/backend/molgenis-emx2/src/main/java/org/molgenis/emx2/utils/TypeUtils.java @@ -403,7 +403,7 @@ public static Object getTypedValue(Object v, ColumnType columnType) { return switch (columnType.getBaseType()) { case UUID -> TypeUtils.toUuid(v); case UUID_ARRAY -> TypeUtils.toUuidArray(v); - case STRING, EMAIL, HYPERLINK -> TypeUtils.toString(v); + case STRING, EMAIL, HYPERLINK, FILE -> TypeUtils.toString(v); case STRING_ARRAY, EMAIL_ARRAY, HYPERLINK_ARRAY -> TypeUtils.toStringArray(v); case BOOL -> TypeUtils.toBool(v); case BOOL_ARRAY -> TypeUtils.toBoolArray(v);