#108496record-transformation in menu_pages in translation not possible
Description
Having a menu_pages menu where you use the DataProcessor record-transformation causes an error if not in default language.
I am working in TYPO3 13
How to reproduce:- Add a menu_pages content element on a page
- Translate the page and the content element
- Add a record-transformation DataProcessor to menu_pages
tt_content.menu_pages {
dataProcessing {
10.dataProcessing.20 = record-transformation
10.dataProcessing.20 {
as = pageRecord
}
}
}
(1/1) TypeError
TYPO3\CMS\Core\Domain\Record\ComputedProperties::__construct(): Argument #4 ($translationSource) must be of type ?TYPO3\CMS\Core\Domain\Page, array given, called in /var/www/html/vendor/typo3/cms-core/Classes/Domain/RecordFactory.php on line 219
I have not found why the $record[‘_TRANSLATION_SOURCE’] is an array instead of an Page-Object.