Bug #105478
closedSys log shows "[No title]" for updated records in details
100%
Description
- Create a "Header only" content element an set the "Header"
- Save the element
- In syslog you see now something like:
Record "Test" (tt_content:2) was inserted on page "Home" (1)
- Go back to the element and change the "Type" (header_layout)
- In syslog you see now something like:
Record "[No title]" (tt_content:2) was updated
Updated by Sébastien Delcroix 5 months ago
After some quick investigation, it occurs when a content record is updated but its title is not modified.
As the header field value has not changed, DataHandler doesn't have this field when updating the record in the database and so the record title cannot be resolved and inserted in the log message.
It works in v12 though because DataHandler uses the checkStoredRecord()
method that queries the record just after it has been updated in DB.
So the header field value is retrieved and the record title can be resolved and inserted in the log message.
- https://review.typo3.org/c/Packages/TYPO3.CMS/+/80752/3/typo3/sysext/core/Classes/DataHandling/DataHandler.php#b7741
- Changelog : https://docs.typo3.org/c/typo3/cms-core/main/en-us/Changelog/13.0/Deprecation-101793-DataHandlerCheckStoredRecordsProperties.html
I'll try to provide a patch.
Updated by Gerrit Code Review 3 months ago
- Status changed from New to Under Review
Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/87496
Updated by Gerrit Code Review 3 months ago
Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/87496
Updated by Garvin Hicking 3 months ago
- Related to Task #101793: Remove DataHandler->checkStoredRecord() added
Updated by Gerrit Code Review 3 months ago
Patch set 1 for branch 13.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/87508
Updated by Georg Ringer 3 months ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 94e651a06b0942e150155690819b3901e5cfd155.