diff --git a/Classes/DataProcessing/DatabaseQueryProcessor.php b/Classes/DataProcessing/DatabaseQueryProcessor.php index bb95a7e9..f26bb12a 100644 --- a/Classes/DataProcessing/DatabaseQueryProcessor.php +++ b/Classes/DataProcessing/DatabaseQueryProcessor.php @@ -129,6 +129,16 @@ private function processRecordVariables(array $records, string $tableName, array $processedRecordVariables[$key] = $record; $processedRecordVariables[$key] = $this->contentDataProcessor->process($recordContentObjectRenderer, $processorConfiguration, $processedRecordVariables[$key]); + + if (isset($processorConfiguration['overrideFields.'])) { + $overrideFields = $this->typoScriptService->convertTypoScriptArrayToPlainArray($processorConfiguration['overrideFields.']); + $jsonCE = $this->typoScriptService->convertPlainArrayToTypoScriptArray(['fields' => $overrideFields, '_typoScriptNodeValue' => 'JSON']); + $record = \json_decode($recordContentObjectRenderer->cObjGetSingle('JSON', $jsonCE), true); + + foreach ($record as $fieldName => $overrideData) { + $processedRecordVariables[$key][$fieldName] = $overrideData; + } + } } return $processedRecordVariables;