Project

General

Profile

Actions

Task #102836

closed

Make JavaScript method FilesControlContainer::deleteRecord() public

Added by Daniel Siepmann 3 months ago. Updated about 2 months ago.

Status:
Resolved
Priority:
Should have
Category:
Backend JavaScript
Target version:
-
Start date:
2024-01-15
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
12
PHP Version:
Tags:
Complexity:
Sprint Focus:

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.

Actions #1

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/+/82457

Actions #2

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/+/82457

Actions #3

Updated by Daniel Siepmann 3 months ago

  • Subject changed from Make JavaScript method InlineControlContainer::deleteRecord() public to Make JavaScript method FilesControlContainer::deleteRecord() public
Actions #4

Updated by Gerrit Code Review 3 months ago

Patch set 3 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/+/82457

Actions #5

Updated by Gerrit Code Review 3 months ago

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/+/82594

Actions #6

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/+/82594

Actions #7

Updated by Gerrit Code Review 3 months ago

Patch set 3 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/+/82594

Actions #8

Updated by Andreas Fernandez about 2 months ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF