Project

General

Profile

Bug #18920 ยป bug-8635-buggyTCE-on-copy.diff

Administrator Admin, 2008-06-09 10:36

View differences:

t3lib/class.t3lib_tcemain.php (working copy)
break;
default:
if (isset($TCA[$table]['columns'][$field])) {
if ($this->dontProcessTransformations) {
// In case of a copy, just copy original values over
$fieldArray[$field] = $fieldValue;
} else {
// Evaluating the value
$res = $this->checkValue($table,$field,$fieldValue,$id,$status,$realPid,$tscPID);
if (isset($res['value'])) {
$fieldArray[$field] = $res['value'];
}
// Evaluating the value
$res = $this->checkValue($table,$field,$fieldValue,$id,$status,$realPid,$tscPID);
if (isset($res['value'])) {
$fieldArray[$field] = $res['value'];
}
// Add the value of the original record to the diff-storage content:
......
case 'date':
case 'datetime':
$value = intval($value);
if ($value>0) {
if ($value>0 && !$this->dontProcessTransformations) {
$value -= date('Z', $value);
}
break;
    (1-1/1)