diff --git a/Classes/DataProcessing/FlexFormProcessor.php b/Classes/DataProcessing/FlexFormProcessor.php index 60b72e18..15815fd2 100644 --- a/Classes/DataProcessing/FlexFormProcessor.php +++ b/Classes/DataProcessing/FlexFormProcessor.php @@ -99,16 +99,15 @@ public function process(ContentObjectRenderer $cObj, array $contentObjectConfigu $fieldName = 'pi_flexform'; } - if (!$processedData['data'][$fieldName] && !$processedData[$fieldName]) { + // processing the flexform data + $originalValue = $processedData['data'][$fieldName] ?? $processedData[$fieldName] ?? null; + if ($originalValue === null) { return $processedData; } - // processing the flexform data - $originalValue = $processedData['data'][$fieldName] ?? $processedData[$fieldName]; - if (\is_array($originalValue)) { $flexformData = $originalValue; - } elseif (\is_string($originalValue)) { + } elseif (\is_string($originalValue) && !empty($originalValue)) { $flexformData = $this->flexFormService->convertFlexFormContentToArray($originalValue); } else { return $processedData;