diff --git a/Classes/DataCollector/TcaDataCollector.php b/Classes/DataCollector/TcaDataCollector.php index cc059a3e..8af13156 100644 --- a/Classes/DataCollector/TcaDataCollector.php +++ b/Classes/DataCollector/TcaDataCollector.php @@ -341,7 +341,7 @@ public function buildUidListQueryBuilder($applyLanguageRestriction = false) } //LanguageRestriction - if ($applyLanguageRestriction) { + if ($applyLanguageRestriction && !empty($this->getTcaConfiguration()['ctrl']['languageField'])) { $whereExpressions[] = $queryBuilder->expr()->in($this->config['table'] . "." . $this->getTcaConfiguration()['ctrl']['languageField'], $queryBuilder->createNamedParameter("0,-1")); }