Actions
Bug #105478
openSys log shows "[No title]" for updated records in details
Status:
New
Priority:
Should have
Assignee:
-
Category:
DataHandler aka TCEmain
Target version:
-
Start date:
2024-10-25
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
13
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
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 25 days 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.
Actions