[BUGFIX] Respect sys_language enable fields 73/31173/4
authorAlexander Stehlik <alexander.stehlik@gmail.com>
Sat, 13 Dec 2014 12:08:44 +0000 (13:08 +0100)
committerBenjamin Mack <benni@typo3.org>
Wed, 17 Dec 2014 23:45:29 +0000 (00:45 +0100)
This patch adds a call to BackendUtility::BEenableFields()
in the getSystemLanguages() of the TranslationConfigurationProvider
so that hidden records will not be returned any more.

Releases: master, 6.2
Resolves: #59947
Change-Id: I1c73de4621c7490273ce2966130e53add70b81cd
Reviewed-on: http://review.typo3.org/31173
Reviewed-by: Michael Oehlhof <typo3@oehlhof.de>
Reviewed-by: Susanne Moog <typo3@susannemoog.de>
Tested-by: Susanne Moog <typo3@susannemoog.de>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: Benjamin Mack <benni@typo3.org>
Tested-by: Benjamin Mack <benni@typo3.org>
typo3/sysext/backend/Classes/Configuration/TranslationConfigurationProvider.php

index bcea81c..0e317b5 100644 (file)
@@ -57,7 +57,7 @@ class TranslationConfigurationProvider {
                        'flagIcon' => 'flags-multiple'
                );
                // Find all system languages:
-               $sysLanguages = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows('*', 'sys_language', '');
+               $sysLanguages = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows('*', 'sys_language', '1=1' . BackendUtility::BEenableFields('sys_language'));
                foreach ($sysLanguages as $row) {
                        $languageIconTitles[$row['uid']] = $row;
                        if (!empty($row['language_isocode'])) {