[BUGFIX] Copy DataHandler::enableLogging to sub objects 89/45389/4
authorChristian Weiske <weiske@mogic.com>
Mon, 21 Dec 2015 11:07:55 +0000 (12:07 +0100)
committerMorton Jonuschat <m.jonuschat@mojocode.de>
Fri, 15 Jan 2016 15:48:58 +0000 (16:48 +0100)
Releases: master, 7.6, 6.2
Fixes: #72357
Change-Id: I33ff172e1c8ad851050d41933eeeeffc1d6c28dd
Reviewed-on: https://review.typo3.org/45389
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
Reviewed-by: Stephan GroƟberndt <stephan@grossberndt.de>
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Reviewed-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Tested-by: Morton Jonuschat <m.jonuschat@mojocode.de>
typo3/sysext/core/Classes/DataHandling/DataHandler.php

index 4f1c83d..485269c 100644 (file)
@@ -1151,6 +1151,7 @@ class DataHandler
 
                                 /** @var $tce DataHandler */
                                 $tce = GeneralUtility::makeInstance(__CLASS__);
+                                $tce->enableLogging = $this->enableLogging;
                                 // Setting up command for creating a new version of the record:
                                 $cmd = array();
                                 $cmd[$table][$id]['version'] = array(
@@ -4637,6 +4638,7 @@ class DataHandler
         if (is_array($removeArray) && !empty($removeArray)) {
             /** @var DataHandler $tce */
             $tce = GeneralUtility::makeInstance(__CLASS__);
+            $tce->enableLogging = $this->enableLogging;
             $tce->start(array(), $removeArray);
             $tce->process_cmdmap();
             unset($tce);
@@ -5014,6 +5016,7 @@ class DataHandler
                 );
                 /** @var DataHandler $dataHandler */
                 $dataHandler = GeneralUtility::makeInstance(__CLASS__);
+                $dataHandler->enableLogging = $this->enableLogging;
                 $dataHandler->neverHideAtCopy = true;
                 $dataHandler->start(array(), $command);
                 $dataHandler->process_cmdmap();
@@ -5469,6 +5472,7 @@ class DataHandler
     {
         $copyTCE = GeneralUtility::makeInstance(__CLASS__);
         $copyTCE->copyTree = $this->copyTree;
+        $copyTCE->enableLogging = $this->enableLogging;
         // Copy forth the cached TSconfig
         $copyTCE->cachedTSconfig = $this->cachedTSconfig;
         // Transformations should NOT be carried out during copy