Commit c5bafa6c authored by Christian Weiske's avatar Christian Weiske Committed by Morton Jonuschat
Browse files

[BUGFIX] Copy DataHandler::enableLogging to sub objects

Releases: master, 7.6, 6.2
Fixes: #72357
Change-Id: I33ff172e1c8ad851050d41933eeeeffc1d6c28dd
Reviewed-on: https://review.typo3.org/45389


Reviewed-by: Markus Klein's avatarMarkus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein's avatarMarkus Klein <markus.klein@typo3.org>
Reviewed-by: Stephan Großberndt's avatarStephan Großberndt <stephan@grossberndt.de>
Reviewed-by: Andreas Fernandez's avatarAndreas Fernandez <typo3@scripting-base.de>
Reviewed-by: default avatarMorton Jonuschat <m.jonuschat@mojocode.de>
Tested-by: default avatarMorton Jonuschat <m.jonuschat@mojocode.de>
parent 4e8ad928
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment