From 4bb1a1ce2080eb01e214fea6780af97a6f7b562e Mon Sep 17 00:00:00 2001 From: Claus Due Date: Mon, 27 Nov 2023 11:23:51 +0100 Subject: [PATCH] [BUGFIX] Null-coalesce possibly null flexform source in record --- Classes/ViewHelpers/Form/DataViewHelper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/ViewHelpers/Form/DataViewHelper.php b/Classes/ViewHelpers/Form/DataViewHelper.php index 72c539ab6..7cf8fc116 100644 --- a/Classes/ViewHelpers/Form/DataViewHelper.php +++ b/Classes/ViewHelpers/Form/DataViewHelper.php @@ -151,7 +151,7 @@ protected static function readDataArrayFromProvidersOrUsingDefaultMethod( string $field ): array { if (0 === count($providers)) { - $dataArray = static::getFormDataTransformer()->convertFlexFormContentToArray($record[$field]); + $dataArray = static::getFormDataTransformer()->convertFlexFormContentToArray($record[$field] ?? ''); } else { $dataArray = []; /** @var ProviderInterface $provider */