Issue Bug Closed

#105721No change in tstamp by recovery of a page

Daniel Balado Casal 11/28/24, 13:39 updated 04/09/25, 08:37

Description

While working with the apache-solr-for-typo3/solr extension, I’ve noticed that when a page is retrieved from the recycle bin, the status change events don’t seem to be triggered. The ‘tstamp’ field in the database doesn’t change either.
As a result, when I recover a page, it doesn’t get added back to my solr index unless I make some changes to it (e.g. deactivate and reactivate).
Is this the expected behavior?

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

History 4

  1. Georg Ringer commented <span data-processor="relativetime" data-value="2024-12-15T19:08:24+00:00" > 12/15/24, 19:08 </span>

    just from reading, the timestamp should get updated, code in DataHander

    if ($timestampField !== '') {
                $updateFields[$timestampField] = $GLOBALS['EXEC_TIME'];
            }
     $this->connectionPool->getConnectionForTable($table)
                ->update(
                    $table,
                    $updateFields,
                    ['uid' => $uid]
                );<
    /pre>
  2. Benni Mack commented and changed status New Closed <span data-processor="relativetime" data-value="2025-04-09T08:37:33+00:00" > 04/09/25, 08:37 </span>

    Just tried this out in TYPO3 v13 / v14… This works just fine for me.

    A deletion process triggers an update of the tstamp:

    - See https://github.com/TYPO3/typo3/blob/13.4/typo3/sysext/core/Classes/DataHandling/DataHandler.php#L5900-L5903 in v13 code
    - and https://github.com/TYPO3/typo3/blob/12.4/typo3/sysext/core/Classes/DataHandling/DataHandler.php#L5863-L5866 in v12 code

    I will close this ticket as I assume the issue is somewhere else and I com (I assume solr does not hook into this place for delete/undete).