diff --git a/Classes/IndexQueue/Indexer.php b/Classes/IndexQueue/Indexer.php index 53c9f06ca5..a7e7e8a432 100644 --- a/Classes/IndexQueue/Indexer.php +++ b/Classes/IndexQueue/Indexer.php @@ -264,6 +264,14 @@ protected function getItemRecordOverlayed(Item $item, int $language): ?array ) { return null; } + // skip translated records for default language within "free content mode"-languages + if ($language === 0 + && isset($languageField) + && (int)($itemRecord[$languageField] ?? null) !== $language + && $this->isLanguageInAFreeContentMode($item, (int)($itemRecord[$languageField] ?? null)) + ) { + return null; + } $pidToUse = $this->getPageIdOfItem($item);