[BUGFIX] Copy DataHandler::enableLogging to sub objects 55/45955/2
authorMorton Jonuschat <m.jonuschat@mojocode.de>
Fri, 15 Jan 2016 16:01:53 +0000 (17:01 +0100)
committerMorton Jonuschat <m.jonuschat@mojocode.de>
Fri, 15 Jan 2016 16:03:26 +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/45955

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

index 93fbf5e..1650727 100644 (file)
@@ -1122,6 +1122,7 @@ class DataHandler {
                                                                                        $tce = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\DataHandling\\DataHandler');
                                                                                        /** @var $tce \TYPO3\CMS\Core\DataHandling\DataHandler */
                                                                                        $tce->stripslashes_values = 0;
+                                                                                       $tce->enableLogging = $this->enableLogging;
                                                                                        // Setting up command for creating a new version of the record:
                                                                                        $cmd = array();
                                                                                        $cmd[$table][$id]['version'] = array(
@@ -4316,6 +4317,7 @@ class DataHandler {
                                                if (is_array($removeArray) && count($removeArray)) {
                                                        $tce = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\DataHandling\\DataHandler');
                                                        $tce->stripslashes_values = FALSE;
+                                                       $tce->enableLogging = $this->enableLogging;
                                                        $tce->start(array(), $removeArray);
                                                        $tce->process_cmdmap();
                                                        unset($tce);
@@ -4676,6 +4678,7 @@ class DataHandler {
                                );
                                $dataHandler = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\DataHandling\\DataHandler');
                                $dataHandler->stripslashes_values = FALSE;
+                               $dataHandler->enableLogging = $this->enableLogging;
                                $dataHandler->neverHideAtCopy = TRUE;
                                $dataHandler->start(array(), $command);
                                $dataHandler->process_cmdmap();
@@ -5113,6 +5116,7 @@ class DataHandler {
        protected function getLocalTCE($stripslashesValues = FALSE, $dontProcessTransformations = TRUE) {
                $copyTCE = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\DataHandling\\DataHandler');
                $copyTCE->stripslashes_values = $stripslashesValues;
+               $copyTCE->enableLogging = $this->enableLogging;
                $copyTCE->copyTree = $this->copyTree;
                // Copy forth the cached TSconfig
                $copyTCE->cachedTSconfig = $this->cachedTSconfig;