#79156Wrong translation behavior for file references fields in pages/pages_language_overlay with l10n_mode = exclude
Description
When you don’t define a field in pages_language_overlay because the field is defined as l10n_mode = exclude in pages the PageRepository::shouldFieldBeOverlaid() wrongly sees the field as being overlayed.
All methods calling PageRepository::shouldFieldBeOverlaid() respect $GLOBALS['TYPO3_CONF_VARS']['FE']['pageOverlayFields'] already before calling it except PageRepository::getFileReferences() where it now goes wrong when fetching files for the field of a translated page.
Example ts to test:
page.111 = FILES
page.111 {
references {
table = pages
fieldName = my_custom_field
}
renderObj = IMAGE
renderObj {
file.import.data = file:current:uid
file.treatIdAsReference = 1
altText.data = file:current:title
wrap = <li>|</li>
}
stdWrap.wrap = <ul>|</ul>
}