Issue Bug Resolved

#111129Relations of a record found by findByUid() through a language fallback chain are overlaid in the fallback language

Alexander Schnitzler 10/18/26, 06:18 updated 11/09/26, 16:00

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

  1. Anonymous commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2026-11-09T14:25:11+00:00" > 11/09/26, 14:25 </span>

    Applied in changeset commit:ba3a53f4ed1cd24e7d35af0def3a6f14ed5813ae.

  2. Gerrit Code Review pushed patch set 2 for 14.3 to change 97442 status Resolved Under Review <span data-processor="relativetime" data-value="2026-11-09T14:48:16+00:00" > 11/09/26, 14:48 </span>

  3. Anonymous commented and changed status Under Review Resolved <span data-processor="relativetime" data-value="2026-11-09T16:00:12+00:00" > 11/09/26, 16:00 </span>

    Applied in changeset commit:fbd0357c7257a27f8f17b399fcad1d544ef3a2f4.