[BUGFIX] Fix localization guard for "pages_language_overlay" 28/51728/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:35:33 +0000 (00:35 +0100)
Resolves: #79859
Related: #78191
Releases: master, 7.6
Change-Id: Ia2a3ed9b1a793c1be554f73fa99362e3015313df
Reviewed-on: https://review.typo3.org/51728
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/core/Classes/DataHandling/DataHandler.php

index 7ec5f00..d5e5f80 100644 (file)
@@ -4591,7 +4591,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);