79241842

Date: 2024-12-01 15:08:28
Score: 0.5
Natty:
Report link

When working with TYPO3 and inline fields in the TCA configuration, TYPO3 already handles the duplication of related child records when you copy a parent record, as long as the configuration is properly set up.

This behavior is managed in the DataHandler class, specifically in the copyRecord() method, which ensures that referenced child records are duplicated. You can refer to the source code for more details : https://github.com/TYPO3/typo3/blob/12.4/typo3/sysext/core/Classes/DataHandling/DataHandler.php#L4117

In your case, you should verify that the 'tx_headline' field is correctly storing the UID of the parent record in the database.

Reasons:
  • Whitelisted phrase (-1): In your case
  • Long answer (-0.5):
  • No code block (0.5):
  • Starts with a question (0.5): When
  • Low reputation (1):
Posted by: Haythem Daoud