Bug #97587
openCEs with no default are thrown away - hideNonTranslated ignored
0%
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'`