Skip to content

Commit

Permalink
[BUGFIX] Null-coalesce possibly null flexform source in record
Browse files Browse the repository at this point in the history
  • Loading branch information
NamelessCoder committed Nov 27, 2023
1 parent 5c10d64 commit 4bb1a1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/ViewHelpers/Form/DataViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 4bb1a1c

Please sign in to comment.