Project

General

Profile

Bug #19840 » 0010165_v3.patch

Administrator Admin, 2009-03-31 18:55

View differences:

t3lib/class.t3lib_tcemain.php (Arbeitskopie)
array(), // Not used.
array(), // Not used.
$dataStructArray,
array($table,$uid,$field), // Parameters.
array($table, $uid, $field, $realDestPid), // Parameters.
'copyRecord_flexFormCallBack'
);
$value = $currentValueArray; // Setting value as an array! -> which means the input will be processed according to the 'flex' type when the new copy is created.
......
function copyRecord_flexFormCallBack($pParams, $dsConf, $dataValue, $dataValue_ext1, $dataValue_ext2) {
// Extract parameters:
list($table, $uid, $field) = $pParams;
list($table, $uid, $field, $realDestPid) = $pParams;
// Process references and files, currently that means only the files, prepending absolute paths:
$dataValue = $this->copyRecord_procFilesRefs($dsConf, $uid, $dataValue);
// If references are set for this field, set flag so they can be corrected later (in ->remapListedDBRecords())
if ($this->isReferenceField($dsConf) && strlen($dataValue)) {
$dataValue = $this->copyRecord_procBasedOnFieldType($table, $uid, $field, $dataValue, array(), $dsConf, $realDestPid);
$this->registerDBList[$table][$uid][$field] = 'FlexForm_reference';
}
(6-6/6)