[BUGFIX] DataHandler should inherit $isImporting 32/49932/2
authorBenni Mack <benni@typo3.org>
Tue, 13 Sep 2016 12:35:15 +0000 (14:35 +0200)
committerGeorg Ringer <georg.ringer@gmail.com>
Tue, 13 Sep 2016 18:53:37 +0000 (20:53 +0200)
When DataHandler uses getLocalTCE() the option
for "isImporting" is not transferred, causing
a lot of inconsistencies with hooks relying
on this option (e.g. l10nmgr+gridelements).

Resolves: #77937
Releases: master, 7.6
Change-Id: I70c0ca7741d217764cbe9702efc1d09308923311
Reviewed-on: https://review.typo3.org/49932
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Jo Hasenau <info@cybercraft.de>
Tested-by: Jo Hasenau <info@cybercraft.de>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
typo3/sysext/core/Classes/DataHandling/DataHandler.php

index 2b1108f..895e543 100644 (file)
@@ -5610,6 +5610,9 @@ class DataHandler
         $copyTCE->cachedTSconfig = $this->cachedTSconfig;
         // Transformations should NOT be carried out during copy
         $copyTCE->dontProcessTransformations = true;
+        // make sure the isImporting flag is transferred, so all hooks know if
+        // the current process is an import process
+        $copyTCE->isImporting = $this->isImporting;
         return $copyTCE;
     }