Fixed bug #8454: IRRE - Localization mode is not fetched correctly
authorOliver Hader <oliver.hader@typo3.org>
Mon, 19 May 2008 11:27:40 +0000 (11:27 +0000)
committerOliver Hader <oliver.hader@typo3.org>
Mon, 19 May 2008 11:27:40 +0000 (11:27 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@3661 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_befunc.php

index e080e01..5e98ba3 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+2008-05-19  Oliver Hader  <oliver@typo3.org>
+
+       * Fixed bug #8454: IRRE - Localization mode is not fetched correctly
 
 2008-05-18  Martin Kutschker  <masi@typo3.org>
 
index 839a104..33783b2 100755 (executable)
@@ -866,8 +866,8 @@ final class t3lib_BEfunc {
                $localizationMode = false;
                if (is_array($fieldOrConfig) && count($fieldOrConfig)) {
                        $config = $fieldOrConfig;
-               } elseif (is_string($fieldOrConfig) && isset($GLOBALS['TCA'][$table]['columns'][$field]['config'])) {
-                       $config = $GLOBALS['TCA'][$table]['columns'][$field]['config'];
+               } elseif (is_string($fieldOrConfig) && isset($GLOBALS['TCA'][$table]['columns'][$fieldOrConfig]['config'])) {
+                       $config = $GLOBALS['TCA'][$table]['columns'][$fieldOrConfig]['config'];
                }
                if (is_array($config) && isset($config['type']) && $config['type']=='inline' && self::isTableLocalizable($table)) {
                        $localizationMode = (isset($config['behaviour']['localizationMode']) && $config['behaviour']['localizationMode'] ? $config['behaviour']['localizationMode'] : 'select');