|
@@ 1195-1200 (lines=6) @@
|
| 1192 |
|
} |
| 1193 |
|
// Setting system fields |
| 1194 |
|
if ($status === 'new') { |
| 1195 |
|
if ($GLOBALS['TCA'][$table]['ctrl']['crdate']) { |
| 1196 |
|
$fieldArray[$GLOBALS['TCA'][$table]['ctrl']['crdate']] = $GLOBALS['EXEC_TIME']; |
| 1197 |
|
if ($createNewVersion) { |
| 1198 |
|
$newVersion_placeholderFieldArray[$GLOBALS['TCA'][$table]['ctrl']['crdate']] = $GLOBALS['EXEC_TIME']; |
| 1199 |
|
} |
| 1200 |
|
} |
| 1201 |
|
if ($GLOBALS['TCA'][$table]['ctrl']['cruser_id']) { |
| 1202 |
|
$fieldArray[$GLOBALS['TCA'][$table]['ctrl']['cruser_id']] = $this->userid; |
| 1203 |
|
if ($createNewVersion) { |
|
@@ 1211-1216 (lines=6) @@
|
| 1208 |
|
// Removing fields which are equal to the current value: |
| 1209 |
|
$fieldArray = $this->compareFieldArrayWithCurrentAndUnset($table, $id, $fieldArray); |
| 1210 |
|
} |
| 1211 |
|
if ($GLOBALS['TCA'][$table]['ctrl']['tstamp'] && !empty($fieldArray)) { |
| 1212 |
|
$fieldArray[$GLOBALS['TCA'][$table]['ctrl']['tstamp']] = $GLOBALS['EXEC_TIME']; |
| 1213 |
|
if ($createNewVersion) { |
| 1214 |
|
$newVersion_placeholderFieldArray[$GLOBALS['TCA'][$table]['ctrl']['tstamp']] = $GLOBALS['EXEC_TIME']; |
| 1215 |
|
} |
| 1216 |
|
} |
| 1217 |
|
// Set stage to "Editing" to make sure we restart the workflow |
| 1218 |
|
if ($GLOBALS['TCA'][$table]['ctrl']['versioningWS']) { |
| 1219 |
|
$fieldArray['t3ver_stage'] = 0; |