diff --git a/Classes/Form/FormDataProvider/DotFormsDataProvider.php b/Classes/Form/FormDataProvider/DotFormsDataProvider.php index b5db090..3383538 100644 --- a/Classes/Form/FormDataProvider/DotFormsDataProvider.php +++ b/Classes/Form/FormDataProvider/DotFormsDataProvider.php @@ -26,6 +26,9 @@ public function addData(array $result): array } $currentArray = $currentArray[$fieldPart] ?? null; } + if ($fieldConfig['config']['type'] === 'select' && !is_array($currentArray)) { + $currentArray = $currentArray === null ? $result['databaseRow'][$fieldName] ?? [] : [$currentArray]; + } $result['databaseRow'][$fieldName] = $currentArray ?? $result['databaseRow'][$fieldName] ?? null; } }