[BUGFIX] Copy DataHandler::enableLogging to sub objects 54/45954/3
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 16:03:02 +0000 (17:03 +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>
(cherry picked from commit c5bafa6c6fbec9fca73dded0654b7db04e530172)
Reviewed-on: https://review.typo3.org/45954

typo3/sysext/core/Classes/DataHandling/DataHandler.php

index bd10a23..4a13eb1 100644 (file)
@@ -1175,6 +1175,7 @@ class DataHandler
                                 /** @var $tce DataHandler */
                                 $tce = GeneralUtility::makeInstance(__CLASS__);
                                 $tce->stripslashes_values = false;
+                                $tce->enableLogging = $this->enableLogging;
                                 // Setting up command for creating a new version of the record:
                                 $cmd = array();
                                 $cmd[$table][$id]['version'] = array(
@@ -4793,6 +4794,7 @@ class DataHandler
             /** @var DataHandler $tce */
             $tce = GeneralUtility::makeInstance(__CLASS__);
             $tce->stripslashes_values = false;
+            $tce->enableLogging = $this->enableLogging;
             $tce->start(array(), $removeArray);
             $tce->process_cmdmap();
             unset($tce);
@@ -5171,6 +5173,7 @@ class DataHandler
                 /** @var DataHandler $dataHandler */
                 $dataHandler = GeneralUtility::makeInstance(__CLASS__);
                 $dataHandler->stripslashes_values = false;
+                $dataHandler->enableLogging = $this->enableLogging;
                 $dataHandler->neverHideAtCopy = true;
                 $dataHandler->start(array(), $command);
                 $dataHandler->process_cmdmap();
@@ -5629,6 +5632,7 @@ class DataHandler
         $copyTCE = GeneralUtility::makeInstance(__CLASS__);
         $copyTCE->stripslashes_values = $stripslashesValues;
         $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