If in a record with an inline relation a new relation
is added and nothing else is changed the timestamp
was not updated.
The logic to update the timestamp has now been added
to the remapStack processing.
Change-Id: I2eae7d1fb54b21dddc6e3609b1585ba484980b06
Resolves: #82576
Releases: master, 8.7
Reviewed-on: https://review.typo3.org/54423
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Oliver Hader <oliver.hader@typo3.org>
Tested-by: Oliver Hader <oliver.hader@typo3.org>
}
// Update in database (list of children (csv) or number of relations (foreign_field)):
if (!empty($field)) {
- $this->updateDB($table, $id, [$field => $newValue]);
+ $fieldArray = [$field => $newValue];
+ if ($GLOBALS['TCA'][$table]['ctrl']['tstamp']) {
+ $fieldArray[$GLOBALS['TCA'][$table]['ctrl']['tstamp']] = $GLOBALS['EXEC_TIME'];
+ }
+ $this->updateDB($table, $id, $fieldArray);
} elseif (!empty($additionalData['flexFormId']) && !empty($additionalData['flexFormPath'])) {
// Collect data to update FlexForms
$flexFormId = $additionalData['flexFormId'];