[BUGFIX] Fix localization guard for "pages_language_overlay" 20/51720/2
authorMathias Brodala <mbrodala@pagemachine.de>
Thu, 16 Feb 2017 15:42:39 +0000 (16:42 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Thu, 16 Feb 2017 23:27:42 +0000 (00:27 +0100)
Resolves: #79859
Related: #78191
Releases: master, 7.6
Change-Id: Ia2a3ed9b1a793c1be554f73fa99362e3015313df
Reviewed-on: https://review.typo3.org/51720
Reviewed-by: Susanne Moog <susanne.moog@typo3.org>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Frans Saris <franssaris@gmail.com>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Thomas Hohn <thomas@hohn.dk>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/core/Classes/DataHandling/DataHandler.php

index 7d91933..2c7549a 100644 (file)
@@ -4561,7 +4561,7 @@ class DataHandler
         $this->registerNestedElementCall($table, $uid, 'localize');
         if ((!$GLOBALS['TCA'][$table]['ctrl']['languageField']
                 || !$GLOBALS['TCA'][$table]['ctrl']['transOrigPointerField']
-                || $table === 'pages_language_overay')
+                || $table === 'pages_language_overlay')
             && $table !== 'pages') {
             if ($this->enableLogging) {
                 $this->newlog('Localization failed; "languageField" and "transOrigPointerField" must be defined for the table!', 1);