[BUGFIX] Unify language handling within TranslationStatusController 32/56432/3
authorGeorg Ringer <georg.ringer@gmail.com>
Thu, 22 Mar 2018 13:45:48 +0000 (14:45 +0100)
committerAndreas Fernandez <a.fernandez@scripting-base.de>
Thu, 10 May 2018 18:15:48 +0000 (20:15 +0200)
The localization overview within the info module should hide hidden
sys_language records as those are also not available to editors in
the page or list module.

Resolves: #82400
Releases: master, 8.7
Change-Id: I92cdf995c189187682c01beb1d5f5baff934d2cd
Reviewed-on: https://review.typo3.org/56432
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
Reviewed-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: Andreas Fernandez <a.fernandez@scripting-base.de>
typo3/sysext/info/Classes/Controller/TranslationStatusController.php

index 72e8281..a1fa265 100644 (file)
@@ -359,11 +359,7 @@ class TranslationStatusController extends \TYPO3\CMS\Backend\Module\AbstractFunc
             $allowed_languages = array_flip(explode(',', $this->getBackendUser()->groupData['allowed_languages']));
         }
         $queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class)
-            ->getQueryBuilderForTable('sys_language');
-        $queryBuilder
-            ->getRestrictions()
-            ->removeAll();
-        $queryBuilder
+            ->getQueryBuilderForTable('sys_language')
             ->select('*')
             ->from('sys_language')
             ->orderBy('sorting');