From babfa08d8ac31fa9e92a131015d06dadf9d79ea7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andre=CC=81=20Buchmann?= Date: Tue, 21 Dec 2021 08:24:32 +0100 Subject: [PATCH 1/7] Exclude children from excluded parents Issue #45618 --- Classes/Model/L10nAccumulatedInformation.php | 32 +++++++++++++- Classes/Model/Tools/Tools.php | 44 ++++++++++++++++++++ Configuration/TCA/tx_l10nmgr_cfg.php | 20 ++++++++- Resources/Private/Language/locallang_db.xlf | 3 ++ ext_tables.sql | 1 + 5 files changed, 96 insertions(+), 4 deletions(-) diff --git a/Classes/Model/L10nAccumulatedInformation.php b/Classes/Model/L10nAccumulatedInformation.php index ae01729f..6f4b117c 100644 --- a/Classes/Model/L10nAccumulatedInformation.php +++ b/Classes/Model/L10nAccumulatedInformation.php @@ -285,7 +285,30 @@ protected function _calculateInternalAccumulatedInformationsArray() if (isset($this->excludeIndex[$table . ':' . $row['uid']])) { continue; } - if (!empty($row[Constants::L10NMGR_LANGUAGE_RESTRICTION_FIELDNAME])) { + + // Get translation overlay record to check for parent restrictions + $prevLangInfo = $t8Tools->translationInfo( + $table, + $row['uid'], + $previewLanguage, + null, + '', + $previewLanguage + ); + if (!empty($prevLangInfo) && $prevLangInfo['translations'][$previewLanguage]) { + $rowPrevLang = BackendUtility::getRecordWSOL( + $prevLangInfo['translation_table'], + $prevLangInfo['translations'][$previewLanguage]['uid'] + ); + } elseif ($this->forcedPreviewLanguage === 0) { + // Use fallback to default language, if record does not exist in forced source language + $rowPrevLang = BackendUtility::getRecordWSOL( + $prevLangInfo['translation_table'], + $row['uid'] + ); + } + + if (!empty($row[Constants::L10NMGR_LANGUAGE_RESTRICTION_FIELDNAME]) || !empty($rowPrevLang[Constants::L10NMGR_LANGUAGE_RESTRICTION_FIELDNAME])) { /** @var LanguageRestrictionCollection $languageIsRestricted */ $languageIsRestricted = LanguageRestrictionCollection::load( (int)$sysLang, @@ -293,7 +316,7 @@ protected function _calculateInternalAccumulatedInformationsArray() $table, Constants::L10NMGR_LANGUAGE_RESTRICTION_FIELDNAME ); - if ($languageIsRestricted->hasItem((int)$row['uid'])) { + if ($languageIsRestricted->hasItem((int)$row['uid']) || (!empty($rowPrevLang) && $languageIsRestricted->hasItem((int)$rowPrevLang['uid']))) { $this->excludeIndex[$table . ':' . (int)$row['uid']] = 1; continue; } @@ -303,6 +326,11 @@ protected function _calculateInternalAccumulatedInformationsArray() continue; } + // Check parent state of inline Elements and sys_file_references using the row or the rowPrevLang variable + if ((int)$l10ncfg['applyExcludeToChildren'] === 1 && $t8Tools->isParentItemExcluded($table, ($this->forcedPreviewLanguage > 0 && !empty($rowPrevLang)) ? $rowPrevLang: $row, $sysLang, $this->noHidden)) { + continue; + } + $accum[$pageId]['items'][$table][$row['uid']] = $t8Tools->translationDetails( $table, $row, diff --git a/Classes/Model/Tools/Tools.php b/Classes/Model/Tools/Tools.php index f490c7bd..17379e04 100644 --- a/Classes/Model/Tools/Tools.php +++ b/Classes/Model/Tools/Tools.php @@ -26,6 +26,8 @@ * @author Kasper Skaarhoj */ +use Localizationteam\L10nmgr\Constants; +use Localizationteam\L10nmgr\LanguageRestriction\Collection\LanguageRestrictionCollection; use Localizationteam\L10nmgr\Traits\BackendUserTrait; use PDO; use TYPO3\CMS\Backend\Configuration\TranslationConfigurationProvider; @@ -1650,4 +1652,46 @@ public function flushTranslations($table, $uid, $exec = false) } return [$remove, $TCEmain_cmd, $TCEmain_data, $errorLog]; } + + public function isParentItemExcluded(string $table, array $row, int $sysLang, bool $noHidden = false): bool + { + $isInlineTable = (is_array($inlineTablesConfig = $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['l10nmgr']['inlineTablesConfig']) && array_key_exists( + $table, + $inlineTablesConfig + )); + + if ($isInlineTable) { + // Parent fields: + $parentTable = 'tt_content'; + $parentField = $inlineTablesConfig[$table]['parentField']; + } elseif ($table === 'sys_file_reference') { + $parentTable = $row['tablenames']; + $parentField = 'uid_foreign'; + } + + if (!empty($parentTable) && !empty($parentField)) { + $parent = BackendUtility::getRecordWSOL($parentTable, (int)$row[$parentField]); + if (!empty($parent[Constants::L10NMGR_LANGUAGE_RESTRICTION_FIELDNAME])) { + /** @var LanguageRestrictionCollection $languageIsRestricted */ + $languageIsRestricted = LanguageRestrictionCollection::load( + $sysLang, + true, + $parentTable, + Constants::L10NMGR_LANGUAGE_RESTRICTION_FIELDNAME + ); + if ($languageIsRestricted->hasItem((int)$parent['uid'])) { + return true; + } + } + + if ($noHidden && $parent['hidden']) { + return true; + } + + // Recursive call for nested inline elements and sys_file_references + return $this->isParentItemExcluded($parentTable, $parent, $sysLang, $noHidden); + } + + return false; + } } diff --git a/Configuration/TCA/tx_l10nmgr_cfg.php b/Configuration/TCA/tx_l10nmgr_cfg.php index 3f91139a..a73e3495 100644 --- a/Configuration/TCA/tx_l10nmgr_cfg.php +++ b/Configuration/TCA/tx_l10nmgr_cfg.php @@ -204,9 +204,17 @@ 'default' => 0, ], ], + 'applyExcludeToChildren' => [ + 'exclude' => 1, + 'label' => $l10n . ':tx_l10nmgr_cfg.applyExcludeToChildren', + 'config' => [ + 'type' => 'check', + 'default' => 0, + ], + ], ], 'types' => [ - 0 => ['showitem' => 'title,filenameprefix, depth, pages, sourceLangStaticId, --palette--;;forcedSourceLanguageSettings, targetLanguages, tablelist, exclude, include, metadata, displaymode, incfcewithdefaultlanguage, pretranslatecontent, overrideexistingtranslations, sortexports'], + 0 => ['showitem' => 'title,filenameprefix, depth, pages, sourceLangStaticId, --palette--;;forcedSourceLanguageSettings, targetLanguages, tablelist, exclude, include, metadata, displaymode, incfcewithdefaultlanguage, pretranslatecontent, overrideexistingtranslations, sortexports, applyExcludeToChildren'], ], 'palettes' => [ '1' => ['showitem' => ''], @@ -403,9 +411,17 @@ 'default' => 0, ], ], + 'applyExcludeToChildren' => [ + 'exclude' => 1, + 'label' => $l10n . ':tx_l10nmgr_cfg.applyExcludeToChildren', + 'config' => [ + 'type' => 'check', + 'default' => 0, + ], + ], ], 'types' => [ - 0 => ['showitem' => 'title,filenameprefix, depth, pages, --palette--;;forcedSourceLanguageSettings, targetLanguages, tablelist, exclude, include, metadata, displaymode, incfcewithdefaultlanguage, pretranslatecontent, overrideexistingtranslations, sortexports'], + 0 => ['showitem' => 'title,filenameprefix, depth, pages, --palette--;;forcedSourceLanguageSettings, targetLanguages, tablelist, exclude, include, metadata, displaymode, incfcewithdefaultlanguage, pretranslatecontent, overrideexistingtranslations, sortexports, applyExcludeToChildren'], ], 'palettes' => [ '1' => ['showitem' => ''], diff --git a/Resources/Private/Language/locallang_db.xlf b/Resources/Private/Language/locallang_db.xlf index 5c93db70..b27cca37 100644 --- a/Resources/Private/Language/locallang_db.xlf +++ b/Resources/Private/Language/locallang_db.xlf @@ -76,6 +76,9 @@ Include elements (comma list of "table:uid" pairs): + + Exclude children of excluded parent elements (IRRE, sys_file_reference): + Additional Metadata (JSON formatted key value pairs): diff --git a/ext_tables.sql b/ext_tables.sql index d75201de..e5250a46 100644 --- a/ext_tables.sql +++ b/ext_tables.sql @@ -25,6 +25,7 @@ CREATE TABLE tx_l10nmgr_cfg overrideexistingtranslations tinyint(4) DEFAULT '0', pretranslatecontent tinyint(4) DEFAULT '0', sortexports tinyint(4) DEFAULT '0', + applyExcludeToChildren tinyint(4) DEFAULT '0', PRIMARY KEY (uid), KEY parent (pid) From 9f3ca6c7b25f56887fdb399ebf9d8f950e31c5ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andre=CC=81=20Buchmann?= Date: Wed, 19 Jan 2022 17:14:47 +0100 Subject: [PATCH 2/7] Differ between hidden and restrictions Issue #45618 --- Classes/Model/L10nAccumulatedInformation.php | 61 +++++++++++--------- Classes/Model/Tools/Tools.php | 54 ++++++++++++----- 2 files changed, 75 insertions(+), 40 deletions(-) diff --git a/Classes/Model/L10nAccumulatedInformation.php b/Classes/Model/L10nAccumulatedInformation.php index 6f4b117c..4678def3 100644 --- a/Classes/Model/L10nAccumulatedInformation.php +++ b/Classes/Model/L10nAccumulatedInformation.php @@ -286,29 +286,7 @@ protected function _calculateInternalAccumulatedInformationsArray() continue; } - // Get translation overlay record to check for parent restrictions - $prevLangInfo = $t8Tools->translationInfo( - $table, - $row['uid'], - $previewLanguage, - null, - '', - $previewLanguage - ); - if (!empty($prevLangInfo) && $prevLangInfo['translations'][$previewLanguage]) { - $rowPrevLang = BackendUtility::getRecordWSOL( - $prevLangInfo['translation_table'], - $prevLangInfo['translations'][$previewLanguage]['uid'] - ); - } elseif ($this->forcedPreviewLanguage === 0) { - // Use fallback to default language, if record does not exist in forced source language - $rowPrevLang = BackendUtility::getRecordWSOL( - $prevLangInfo['translation_table'], - $row['uid'] - ); - } - - if (!empty($row[Constants::L10NMGR_LANGUAGE_RESTRICTION_FIELDNAME]) || !empty($rowPrevLang[Constants::L10NMGR_LANGUAGE_RESTRICTION_FIELDNAME])) { + if (!empty($row[Constants::L10NMGR_LANGUAGE_RESTRICTION_FIELDNAME])) { /** @var LanguageRestrictionCollection $languageIsRestricted */ $languageIsRestricted = LanguageRestrictionCollection::load( (int)$sysLang, @@ -316,7 +294,7 @@ protected function _calculateInternalAccumulatedInformationsArray() $table, Constants::L10NMGR_LANGUAGE_RESTRICTION_FIELDNAME ); - if ($languageIsRestricted->hasItem((int)$row['uid']) || (!empty($rowPrevLang) && $languageIsRestricted->hasItem((int)$rowPrevLang['uid']))) { + if ($languageIsRestricted->hasItem((int)$row['uid'])) { $this->excludeIndex[$table . ':' . (int)$row['uid']] = 1; continue; } @@ -326,11 +304,42 @@ protected function _calculateInternalAccumulatedInformationsArray() continue; } - // Check parent state of inline Elements and sys_file_references using the row or the rowPrevLang variable - if ((int)$l10ncfg['applyExcludeToChildren'] === 1 && $t8Tools->isParentItemExcluded($table, ($this->forcedPreviewLanguage > 0 && !empty($rowPrevLang)) ? $rowPrevLang: $row, $sysLang, $this->noHidden)) { + // Restrictions are only defined on default lang + if ((int)$l10ncfg['applyExcludeToChildren'] === 1 && $t8Tools->isParentItemExcluded($table, $row, $sysLang)) { continue; } + // Check parent state of inline Elements and sys_file_references using the row or the rowPrevLang variable + if ((int)$l10ncfg['applyExcludeToChildren'] === 1 && $this->noHidden) { + // Get translation overlay record to check for parent restrictions + $prevLangInfo = $t8Tools->translationInfo( + $table, + $row['uid'], + $previewLanguage, + null, + '', + $previewLanguage + ); + if (!empty($prevLangInfo) && $prevLangInfo['translations'][$previewLanguage]) { + $rowPrevLang = BackendUtility::getRecordWSOL( + $prevLangInfo['translation_table'], + $prevLangInfo['translations'][$previewLanguage]['uid'] + ); + } elseif ($this->forcedPreviewLanguage === 0) { + // Use fallback to default language, if record does not exist in forced source language + $rowPrevLang = BackendUtility::getRecordWSOL( + $prevLangInfo['translation_table'], + $row['uid'] + ); + } + + // Hidden state for + if ($t8Tools->isParentItemHidden($table, ($this->forcedPreviewLanguage > 0 && !empty($rowPrevLang)) ? $rowPrevLang : $row, + $sysLang, $this->noHidden)) { + continue; + } + } + $accum[$pageId]['items'][$table][$row['uid']] = $t8Tools->translationDetails( $table, $row, diff --git a/Classes/Model/Tools/Tools.php b/Classes/Model/Tools/Tools.php index 17379e04..a5dea730 100644 --- a/Classes/Model/Tools/Tools.php +++ b/Classes/Model/Tools/Tools.php @@ -1653,22 +1653,52 @@ public function flushTranslations($table, $uid, $exec = false) return [$remove, $TCEmain_cmd, $TCEmain_data, $errorLog]; } - public function isParentItemExcluded(string $table, array $row, int $sysLang, bool $noHidden = false): bool + private function getParentTables(string $table, array $row): array { $isInlineTable = (is_array($inlineTablesConfig = $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['l10nmgr']['inlineTablesConfig']) && array_key_exists( - $table, - $inlineTablesConfig - )); + $table, + $inlineTablesConfig + )); if ($isInlineTable) { // Parent fields: - $parentTable = 'tt_content'; - $parentField = $inlineTablesConfig[$table]['parentField']; - } elseif ($table === 'sys_file_reference') { - $parentTable = $row['tablenames']; - $parentField = 'uid_foreign'; + return ['tt_content', $inlineTablesConfig[$table]['parentField']]; + } + + if ($table === 'sys_file_reference') { + return [$row['tablenames'], 'uid_foreign']; + } + + return [null, null]; + } + + public function isParentItemHidden(string $table, array $row, int $sysLang, bool $noHidden = false): bool + { + // Break early if the noHidden option isn't active at all + if (!$noHidden) { + return false; + } + + [$parentTable, $parentField] = $this->getParentTables($table, $row); + + if (!empty($parentTable) && !empty($parentField)) { + $parent = BackendUtility::getRecordWSOL($parentTable, (int)$row[$parentField]); + + if ($noHidden && $parent['hidden']) { + return true; + } + + // Recursive call for nested inline elements and sys_file_references + return $this->isParentItemHidden($parentTable, $parent, $sysLang, $noHidden); } + return false; + } + + public function isParentItemExcluded(string $table, array $row, int $sysLang): bool + { + [$parentTable, $parentField] = $this->getParentTables($table, $row); + if (!empty($parentTable) && !empty($parentField)) { $parent = BackendUtility::getRecordWSOL($parentTable, (int)$row[$parentField]); if (!empty($parent[Constants::L10NMGR_LANGUAGE_RESTRICTION_FIELDNAME])) { @@ -1684,12 +1714,8 @@ public function isParentItemExcluded(string $table, array $row, int $sysLang, bo } } - if ($noHidden && $parent['hidden']) { - return true; - } - // Recursive call for nested inline elements and sys_file_references - return $this->isParentItemExcluded($parentTable, $parent, $sysLang, $noHidden); + return $this->isParentItemExcluded($parentTable, $parent, $sysLang); } return false; From bd1c3f3071338be56dfc1300ebdb35ea849237fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andre=CC=81=20Buchmann?= Date: Wed, 19 Jan 2022 17:15:07 +0100 Subject: [PATCH 3/7] Include elements from hidden pages Issue #45618 --- Classes/Model/Tools/Tools.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Classes/Model/Tools/Tools.php b/Classes/Model/Tools/Tools.php index a5dea730..338ea07b 100644 --- a/Classes/Model/Tools/Tools.php +++ b/Classes/Model/Tools/Tools.php @@ -1682,6 +1682,10 @@ public function isParentItemHidden(string $table, array $row, int $sysLang, bool [$parentTable, $parentField] = $this->getParentTables($table, $row); if (!empty($parentTable) && !empty($parentField)) { + if ($parentTable === 'pages') { + return false; + } + $parent = BackendUtility::getRecordWSOL($parentTable, (int)$row[$parentField]); if ($noHidden && $parent['hidden']) { From 5bca01f4181521b4d955cb2aac4a0b8dc711310e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andre=CC=81=20Buchmann?= Date: Wed, 19 Jan 2022 17:16:52 +0100 Subject: [PATCH 4/7] Make linter happy Issue #45618 --- Classes/Model/L10nAccumulatedInformation.php | 8 ++++++-- Classes/Model/Tools/Tools.php | 6 +++--- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/Classes/Model/L10nAccumulatedInformation.php b/Classes/Model/L10nAccumulatedInformation.php index 4678def3..8ee04a1c 100644 --- a/Classes/Model/L10nAccumulatedInformation.php +++ b/Classes/Model/L10nAccumulatedInformation.php @@ -334,8 +334,12 @@ protected function _calculateInternalAccumulatedInformationsArray() } // Hidden state for - if ($t8Tools->isParentItemHidden($table, ($this->forcedPreviewLanguage > 0 && !empty($rowPrevLang)) ? $rowPrevLang : $row, - $sysLang, $this->noHidden)) { + if ($t8Tools->isParentItemHidden( + $table, + ($this->forcedPreviewLanguage > 0 && !empty($rowPrevLang)) ? $rowPrevLang : $row, + $sysLang, + $this->noHidden + )) { continue; } } diff --git a/Classes/Model/Tools/Tools.php b/Classes/Model/Tools/Tools.php index 338ea07b..2568dadb 100644 --- a/Classes/Model/Tools/Tools.php +++ b/Classes/Model/Tools/Tools.php @@ -1656,9 +1656,9 @@ public function flushTranslations($table, $uid, $exec = false) private function getParentTables(string $table, array $row): array { $isInlineTable = (is_array($inlineTablesConfig = $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['l10nmgr']['inlineTablesConfig']) && array_key_exists( - $table, - $inlineTablesConfig - )); + $table, + $inlineTablesConfig + )); if ($isInlineTable) { // Parent fields: From 90beced1bfb0afe757cc854d732abf77bd3f2714 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andre=CC=81=20Buchmann?= Date: Thu, 20 Jan 2022 08:13:48 +0100 Subject: [PATCH 5/7] Apply hidden restriction from default language also Issue #45618 --- Classes/Model/L10nAccumulatedInformation.php | 26 ++++++++------------ Classes/Model/Tools/Tools.php | 11 +++------ 2 files changed, 13 insertions(+), 24 deletions(-) diff --git a/Classes/Model/L10nAccumulatedInformation.php b/Classes/Model/L10nAccumulatedInformation.php index 8ee04a1c..2fc625cc 100644 --- a/Classes/Model/L10nAccumulatedInformation.php +++ b/Classes/Model/L10nAccumulatedInformation.php @@ -311,7 +311,12 @@ protected function _calculateInternalAccumulatedInformationsArray() // Check parent state of inline Elements and sys_file_references using the row or the rowPrevLang variable if ((int)$l10ncfg['applyExcludeToChildren'] === 1 && $this->noHidden) { - // Get translation overlay record to check for parent restrictions + // Check hidden state in default language + if ($t8Tools->isParentItemHidden($table, $row, $sysLang)) { + continue; + } + + // Get translation overlay record to check for hidden parents in forced source language $prevLangInfo = $t8Tools->translationInfo( $table, $row['uid'], @@ -325,22 +330,11 @@ protected function _calculateInternalAccumulatedInformationsArray() $prevLangInfo['translation_table'], $prevLangInfo['translations'][$previewLanguage]['uid'] ); - } elseif ($this->forcedPreviewLanguage === 0) { - // Use fallback to default language, if record does not exist in forced source language - $rowPrevLang = BackendUtility::getRecordWSOL( - $prevLangInfo['translation_table'], - $row['uid'] - ); - } - // Hidden state for - if ($t8Tools->isParentItemHidden( - $table, - ($this->forcedPreviewLanguage > 0 && !empty($rowPrevLang)) ? $rowPrevLang : $row, - $sysLang, - $this->noHidden - )) { - continue; + // Hidden state for + if (!empty($rowPrevLang) && $t8Tools->isParentItemHidden($table, $rowPrevLang, $sysLang)) { + continue; + } } } diff --git a/Classes/Model/Tools/Tools.php b/Classes/Model/Tools/Tools.php index 2568dadb..5c3ef02f 100644 --- a/Classes/Model/Tools/Tools.php +++ b/Classes/Model/Tools/Tools.php @@ -1672,13 +1672,8 @@ private function getParentTables(string $table, array $row): array return [null, null]; } - public function isParentItemHidden(string $table, array $row, int $sysLang, bool $noHidden = false): bool + public function isParentItemHidden(string $table, array $row, int $sysLang): bool { - // Break early if the noHidden option isn't active at all - if (!$noHidden) { - return false; - } - [$parentTable, $parentField] = $this->getParentTables($table, $row); if (!empty($parentTable) && !empty($parentField)) { @@ -1688,12 +1683,12 @@ public function isParentItemHidden(string $table, array $row, int $sysLang, bool $parent = BackendUtility::getRecordWSOL($parentTable, (int)$row[$parentField]); - if ($noHidden && $parent['hidden']) { + if ($parent['hidden']) { return true; } // Recursive call for nested inline elements and sys_file_references - return $this->isParentItemHidden($parentTable, $parent, $sysLang, $noHidden); + return $this->isParentItemHidden($parentTable, $parent, $sysLang); } return false; From 1b386beac16519c4f7163e063c4b3c545b5cce2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Buchmann?= Date: Mon, 13 Jun 2022 10:19:47 +0000 Subject: [PATCH 6/7] Exclude item if parent is missing This popped up due to a undeleted file reference where the parent element was deleted. Such file references should not exists in first place, but it should not prevent exports eighter. --- Classes/Model/Tools/Tools.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Classes/Model/Tools/Tools.php b/Classes/Model/Tools/Tools.php index 5c3ef02f..dd6d8c38 100644 --- a/Classes/Model/Tools/Tools.php +++ b/Classes/Model/Tools/Tools.php @@ -1687,6 +1687,11 @@ public function isParentItemHidden(string $table, array $row, int $sysLang): boo return true; } + // Exclude item if parent is missing + if (!$parent) { + return true; + } + // Recursive call for nested inline elements and sys_file_references return $this->isParentItemHidden($parentTable, $parent, $sysLang); } @@ -1713,6 +1718,11 @@ public function isParentItemExcluded(string $table, array $row, int $sysLang): b } } + // Exclude item if parent is missing + if (!$parent) { + return true; + } + // Recursive call for nested inline elements and sys_file_references return $this->isParentItemExcluded($parentTable, $parent, $sysLang); } From ba08fb7af8e395a6e277422301c497053aab4a0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Buchmann?= Date: Tue, 26 Jul 2022 07:25:58 +0000 Subject: [PATCH 7/7] Remove unnecessary line break --- Classes/Model/L10nAccumulatedInformation.php | 1 - 1 file changed, 1 deletion(-) diff --git a/Classes/Model/L10nAccumulatedInformation.php b/Classes/Model/L10nAccumulatedInformation.php index 2fc625cc..256314f5 100644 --- a/Classes/Model/L10nAccumulatedInformation.php +++ b/Classes/Model/L10nAccumulatedInformation.php @@ -285,7 +285,6 @@ protected function _calculateInternalAccumulatedInformationsArray() if (isset($this->excludeIndex[$table . ':' . $row['uid']])) { continue; } - if (!empty($row[Constants::L10NMGR_LANGUAGE_RESTRICTION_FIELDNAME])) { /** @var LanguageRestrictionCollection $languageIsRestricted */ $languageIsRestricted = LanguageRestrictionCollection::load(