#111129Relations of a record found by findByUid() through a language fallback chain are overlaid in the fallback language
Description
Language French with the fallback chain German, English (overlays mixed or on). A review has no French translation, only a German one. Its relation points to an article that has a French translation.
Loaded with $repository->findByUid(), Extbase overlays the review with its German translation, as expected through the chain. The related article is then returned in German (“Erster Artikel”) instead of French (“Premier article”). The core (record API) returns the French article. When the same review is found by a query with respectSysLanguage enabled, Extbase also returns the French article.
Cause: Backend::getObjectByIdentifier() sets setRespectSysLanguage(false). DataMapper::getPreparedQuery() then replaces the requested language by the language of the parent object (_languageUid), which after a fallback is a later language of the chain. The child query starts at German, French is never tried. The branch is meant for findByUid() on a translation’s uid, but it also hits records that were overlaid through the chain.
Expected: children are overlaid starting with the requested language and its fallback chain, as the core does.
Reviews 2
History 27
-
Gerrit Code Review pushed patch set 1 for main to change 96807 status
NewUnder Review <span data-processor="relativetime" data-value="2026-10-18T06:35:21+00:00" > 10/18/26, 06:35 </span> -
Gerrit Code Review pushed patch set 2 for main to change 96807 <span data-processor="relativetime" data-value="2026-10-18T07:04:02+00:00" > 10/18/26, 07:04 </span>
-
Gerrit Code Review pushed patch set 1 for 14.3 to change 97442 <span data-processor="relativetime" data-value="2026-11-09T14:21:51+00:00" > 11/09/26, 14:21 </span>
-
Anonymous commented and changed status
Under ReviewResolved done0 %100 % <span data-processor="relativetime" data-value="2026-11-09T14:25:11+00:00" > 11/09/26, 14:25 </span> -
Gerrit Code Review pushed patch set 2 for 14.3 to change 97442 status
ResolvedUnder Review <span data-processor="relativetime" data-value="2026-11-09T14:48:16+00:00" > 11/09/26, 14:48 </span> -
Gerrit Code Review pushed patch set 3 for 14.3 to change 97442 <span data-processor="relativetime" data-value="2026-11-09T15:26:47+00:00" > 11/09/26, 15:26 </span>
-
Anonymous commented and changed status
Under ReviewResolved <span data-processor="relativetime" data-value="2026-11-09T16:00:12+00:00" > 11/09/26, 16:00 </span>Applied in changeset commit:fbd0357c7257a27f8f17b399fcad1d544ef3a2f4.
Applied in changeset commit:ba3a53f4ed1cd24e7d35af0def3a6f14ed5813ae.