Project

General

Profile

Bug #20239 » 10782_TYPO3_trunk.patch

Administrator Admin, 2009-06-24 10:40

View differences:

t3lib/class.t3lib_tcemain.php (working copy)
$copyTCE->stripslashes_values = 0;
$copyTCE->copyTree = $this->copyTree;
$copyTCE->cachedTSconfig = $this->cachedTSconfig; // Copy forth the cached TSconfig
$copyTCE->dontProcessTransformations=1; // Transformations should NOT be carried out during copy
$copyTCE->dontProcessTransformations = TRUE; // Transformations should NOT be carried out during copy
$copyTCE->start($data,'',$this->BE_USER);
$copyTCE->process_datamap();
......
// The point is that when new records are created as copies with flex type fields there might be a field containing information about which DataStructure to use and without that information the flexforms cannot be correctly processed.... This should be OK since the $checkValueRecord is used by the flexform evaluation only anyways...
$this->checkValue_currentRecord = $fieldArray;
// Makes sure that transformations aren't processed on the copy.
$backupDontProcessTransformations = $this->dontProcessTransformations;
$this->dontProcessTransformations = TRUE;
// Traverse record and input-process each value:
foreach($fieldArray as $field => $fieldValue) {
if (isset($TCA[$table]['columns'][$field])) {
......
// Process the remap stack in case we dealed with relations:
$this->processRemapStack();
// Resets dontProcessTransformations to the previous state.
$this->dontProcessTransformations = $backupDontProcessTransformations;
// Return new id:
return $this->substNEWwithIDs[$id];
}
......
/* @var $copyTCE t3lib_TCEmain */
$copyTCE->stripslashes_values = 0;
$copyTCE->cachedTSconfig = $this->cachedTSconfig; // Copy forth the cached TSconfig
$copyTCE->dontProcessTransformations=1; // Transformations should NOT be carried out during copy
$copyTCE->dontProcessTransformations = TRUE; // Transformations should NOT be carried out during copy
$copyTCE->start(array($Ttable=>array('NEW'=>$overrideValues)),'',$this->BE_USER);
$copyTCE->process_datamap();
(1-1/2)