Issue Task Closed

#102836Make JavaScript method FilesControlContainer::deleteRecord() public

Daniel Siepmann 01/15/24, 10:42 updated 07/09/24, 15:12

Description

The mentioned method is private right now.
It is a callback when deleting inline elements via a button click.
But it is possible to add custom controls via PSR-14 Events.

We now have an event that should “update” an inline element, e.g. a sys_file_reference. The customer has a naming schema which increases a number at the end. We now have a control to update based on that schema.
We therefore need to remove the existing element and insert a new one.

We strived for an alternative using typo3:foreignRelation:insert but it respects max items and doesn’t provide a replace way. We therefore first need to remove the old child prior adding the new one. We therefore need the deleteRecord() method to be publicly available.

Reviews 2