Issue Bug New Orphaned

#108397After switching page translation from strict to free mode, FAL (sys_file_references) keeps the connection. Leads to wrong file deletion, when on default language elements are deleted

Oliver Pfaff 12/04/25, 13:59 updated 12/04/25, 13:59

Description

The error also exists in version 12 as well.

Environment:
  • Basic TYPO3 system without third-party extensions.
  • At least two languages in the system
Reproduction:
  1. Create a new page or use an existing one where no element has been created yet.
  2. Create a text/media or text/image element.
  3. Insert an image into it.
  4. Translate the content into the second language using the Translate (connected mode) option.(If necessary, create the translation for the page first)
  5. Switch to free mode.
  6. To do so, open the translated content element. Under the language tab, set Transl.Orig to empty. Save and close.
  7. Now “Free Mode” should be displayed in the second language.
  8. Go to the element in the default language and delete the image from the element. (Alternatively, the entire element can be deleted. The behavior is the same)
  9. After saving, the image will also be deleted in the translation. If the entire element is deleted in the default language, still only the image in the element of the second language will be deleted.

The reason, when I disconnect the parent tt_content element (Transl.Orig) from the default language, in sys_file_reference the l10n_parent remains set. I diden’t go deep on this, but i assume DataHandler will check l10n_parent fields, when the “original” sys_file_reference will be deleted and delete the matches as well.

Within the normal irre setup, i can disconnect the individual irre records. In the context of FAL (sys_file_reference), an editor cannot do this, because the language tab is not available by default. In this case, when removing the connection via Transl.Orig, the DataHandler should also remove the corresponding sys_file_reference connections.

Big thanks to all the people that do work for this nice project :).

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

Fix this issue

Start the commit message of your patch with this. Add what the patch does, and the versions it goes to in "Releases:". How to create a patch

Commit message
[BUGFIX] After switching page translation from strict to free mode, FAL (sys_file_references) keeps the connection. Leads to wrong file deletion, when on default language elements are deleted Resolves: #108397 Releases: main