Bug #101718
closedDatabaseRecordLinkBuilder does not respect language setting for all languages (sys_language_uid = -1)
100%
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.
Updated by Christian Kuhn about 1 year ago
- Related to Bug #100931: No link generated for record with language 'all languages' added
Updated by Christian Kuhn about 1 year ago
- Related to Task #101229: Update DatabaseRecordLinkBuilder.php added
Updated by Astrid Haubold about 1 year ago
- Related to Story #101565: Frontend related translation issues added
Updated by Benni Mack almost 1 year ago
- Status changed from New to Needs Feedback
I think this might be fixed with https://review.typo3.org/c/Packages/TYPO3.CMS/+/79696 ? released in one of the latest v12 bugfix releases. Can you confirm?
Updated by Philipp Radler 12 months ago
Benni Mack wrote in #note-4:
I think this might be fixed with https://review.typo3.org/c/Packages/TYPO3.CMS/+/79696 ? released in one of the latest v12 bugfix releases. Can you confirm?
Yes this has been fixed in v12. I'm requesting a bugfix for v11, would be awesome if this can be fixed in this version too.
Updated by Gerrit Code Review 9 months ago
- Status changed from Needs Feedback to Under Review
Patch set 1 for branch 11.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/82775
Updated by Gerrit Code Review 9 months ago
Patch set 2 for branch 11.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/82775
Updated by Benni Mack 9 months ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 68a963c02c1207d7765336d693493c783e6a1652.
Updated by Daniel Siepmann 7 months ago
- Related to Bug #98079: No localized records will be rendered in custom record link handlers added