-
-
Notifications
You must be signed in to change notification settings - Fork 356
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The "List of selected items" view with "sort by" setting does not respect language overlay #2369
Comments
My possible solution for now is to override NewRepository idList constraint and add l10n_parent:
|
not so sure if this is enough as it could include other news as well |
I have taken a deeper look in TYPO3's repository function "findByUid/findByIdentifier" to understand what is happening when TYPO3 fetches an object directly by it's uid, it sets three query settings: respectStoragePage => false respectSysLanguage => false languageOverlayMode => true |
Bug Report
Current Behavior
Place a news plugin with view type "List of selected items" on a localized page.
Select default language of one or more single news records.
Select any "Sort by" option e.g. "Given date/time".
Expected behavior/output
Localized news should appear on frontend page but result is an empty page.
Environment
Possible Solution
If "sort by" option is NOT set, uids of selected news records are passed to findByIdentifier() method of repository which seems to look in uid AND l10n_parent.
If "sort by" option is set, $query->in('uid', X) is used and localizations are missing.
The text was updated successfully, but these errors were encountered: