#97587CEs with no default are thrown away - hideNonTranslated ignored
Description
Language Issues are pretty hard so i try to make it simple..
We have an inpage navigation element which allows to link content elements on the same page.
So we got a selectMultipleSideBySide for this.
To resolve those selections we use the DatabaseQueryProcessor with “includeRecordsWithoutDefaultTranslation = 1” set.
Now the issue:
When used in free mode or “custom values” within the element select field, the records will be found by the `getRecords` query, but thrown away by the `getLanguageOverlay` within the same method.
`typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php:6276`
Solution/ my evaluation why is that?
`typo3/sysext/core/Classes/Domain/Repository/PageRepository.php:379`
Here the OverlayType is checked, but missing the floating handling.
So instead of:
`$languageAspect->getOverlayType() = $languageAspect::OVERLAYS_MIXED ? '1' : 'hideNonTranslated'`
it should be
`$languageAspect->getOverlayType() = $languageAspect::OVERLAYS_MIXED || $languageAspect->getOverlayType() === $languageAspect::OVERLAYS_ON_WITH_FLOATING ? ‘1’ : ‘hideNonTranslated’`
Reviews 1
Related issues 1
History 56
-
Henrik Elsner changed Related to #89131 <span data-processor="relativetime" data-value="2022-05-09T07:04:12+00:00" > 05/09/22, 07:04 </span>
-
Gerrit Code Review pushed patch set 1 for main to change 74575 status
NewUnder Review <span data-processor="relativetime" data-value="2022-05-09T07:56:17+00:00" > 05/09/22, 07:56 </span> -
Riccardo De Contardi changed category <span data-processor="relativetime" data-value="2022-05-28T14:26:56+00:00" > 05/28/22, 14:26 </span>
-
Astrid Haubold commented <span data-processor="relativetime" data-value="2022-06-23T16:42:13+00:00" > 06/23/22, 16:42 </span>
-
Andreas Kienast changed status
Under ReviewNew <span data-processor="relativetime" data-value="2025-04-23T09:56:57+00:00" > 04/23/25, 09:56 </span> -
Benni Mack commented and changed status
NewClosed <span data-processor="relativetime" data-value="2026-10-23T08:23:42+00:00" > 10/23/26, 08:23 </span>Good news, this is fixed in TYPO3 v12 (thanks to [!!!][FEATURE] Add generic language overlay PSR-14 events instead of hooks)
I stumbled over this too and I am not sure if hideNonTranslated needs to be set at all (anymore)?
In my opinion to guarantee consistent behaviour throughout only $languageAspect->getOverlayType() should be used.
In typo3/sysext/core/Classes/Domain/Repository/PageRepository.php:377 ff.:
Accordingly in line 696:
The next step would be to allow fallback if 0 is explicitly set in fallback chain: so only unset if 0 is not explicitly set as fallback language