[TYPO3-mvc] Repository query against l10n_mode=exclude fields

Jan Kornblum jan.kornblum at gmx.de
Mon Feb 6 18:04:40 CET 2017


Hi all,

a table contains some field that should only be editable in default language, as they don't differ in translations. So this fields are set as 'l10n_mode' => 'exclude'.

Now a repository query must compare ($query->equals('usage_account_opening', 1)) some of theese (l10n_mode=exclude) fields. But since 7.6, no records are found any more. It looks like the database query is done against this fields in the record overlay directly. In 4.5 LTS everything used to work...

What's my mistake?

I tried to set $query->getQuerySettings()->setRespectSysLanguage(false) in the repository query. Then, the correct number of records seem to be fetched again, and even just the localized records are shown frontend. But wouldn't this lead to both the original records + the overlays are beeing fetched? Or is this magically handeled correctly "behind the scenes"?

Kind regards, Jan




More information about the TYPO3-project-typo3v4mvc mailing list