Issue Feature Closed

#24005cObject CONTENT does not allow to fetch records that have no translation parent

Benni Mack 11/10/10, 16:26 updated 10/23/17, 21:48

Description

When you fetch records through the TypoScript object “CONTENT” (or, let’s say through “.select” in general), you have an option called “languageField” in order to fetch only records that match the current language.

What “select” does here is that it fetches all records in the default language (“0,-1”) and then overlays them with the records of the current language.

However, it’s not possible to fetch the records that don’t have a localization parent.

The patch introduces a new option called “includeRecordsWithoutDefaultTranslation” that also checks for records with the languageField matching the current language, where there is no translation parent (l10n_parent = ‘’).

(issue imported from #M16332)

Reviews 1