#101718DatabaseRecordLinkBuilder does not respect language setting for all languages (sys_language_uid = -1)
Description
I encountered the bug after I created a custom recordLink config like the one described in the TYPO3 Docs.
config{
recordLinks.example {
typolink {
parameter = 123
additionalParams.data = field:uid
additionalParams.wrap = &tx_example_pi1[item]=|&tx_example_pi1[controller]=Item&tx_example_pi1[action]=show
}
}
}
As I want to show my records an every available language without translating them, they are set to sys_language_uid = -1 (all languages).
The problem is the DatabaseRecordLinkBuilder (EXT:frontend/Classes/Typolink/DatabaseRecordLinkBuilder.php) does not support this behaviour, which is indeed a bug.
Currently on Line 65 in DatabaseRecordLinkBuilder.php it states the following.
if (empty($overlay['_LOCALIZED_UID'])) {
$record = 0;
}
This has been fixed in V12, please fix for V11 also.