#86698FilesProcessor w/ custom FileReference for pages w/ plugin
Description
I have set an additional page property (FileReference) in TCA. The defined FileProcessor:
page {
10 {
dataProcessing {
50 = TYPO3\CMS\Frontend\DataProcessing\FilesProcessor
50 {
references.fieldName = page_additional_image
as = page_additional_image
}
}
}
}
}
Until 8.7 all is working fine, in 9.5 the Query which is generated is wrong, if a CType list (plugin) is on the page.
SELECT `uid` FROM `sys_file_reference` WHERE (`uid_foreign` = 202) AND (`tablenames` = 'tt_content') AND (`fieldname` = 'page_additional_image') AND ((`sys_file_reference`.`deleted` = 0) AND ((`sys_file_reference`.`t3ver_state` <= 0) AND (`sys_file_reference`.`pid` <> -1)) AND (`sys_file_reference`.`hidden` = 0)) ORDER BY `sorting_foreign` ASC
The uid_foreign In the WHERE-clause is not the page uid anymore, it is the uid of the plugin from tt_content.
Information from debugging so far:
The variable $processedData[“data”] in “typo3/sysext/frontend/Classes/DataProcessing/FilesProcessor.php” has already the wrong uid
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.