Bug #18920 ยป bug-8635-buggyTCE-on-copy.diff
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;
|