Issue Bug Closed

#106658Deleting page translations wrongfully deletes original content elements in default language

Rony Khoury 05/06/25, 13:05 updated 12/02/25, 14:21

Description

Observation:

When a page translation record is deleted, and then the soft-deleted record in the Recycler module
is also completely deleted, the original content elements in the default language are also deleted
completely (removed from the database).

Expected result:

  • Only the translated page and it’s translated content elements should be deleted
  • The original content elements in the default language should not be deleted

Steps to reproduce:

  1. Create a new page
  2. Add content elements to the page in the default language
  3. Translate the page
  4. Translating the content elements is optional. It happens with and without translated content elements. The translation mode (“connected” or “copy”) doesn’t matter either
  5. Delete the page translation, not the translated content elements. The translated content elements will be deleted automatically
  6. Go to the Recycle module and delete all soft-deleted records
  7. Go back to the newly createad page from step 1
  8. The content elements in the default language are completey deleted

Reviews 2

History 69

  1. Rony Khoury commented <span data-processor="relativetime" data-value="2025-05-07T07:22:05+00:00" > 05/07/25, 07:22 </span>

    Some details of my setup I forgot to add to the ticket description:

    • TYPO3 v13.4.9
    • Custom content elements build with extensions “b13/container” and “friendsoftypo3/content-blocks”
    • Application context: Development
    • Local ddev environment
  2. Rony Khoury commented <span data-processor="relativetime" data-value="2025-05-07T08:46:52+00:00" > 05/07/25, 08:46 </span>

    As discussed in the TYPO3 slack channel (typo3-cms-coredev), I’ve tried to reproduce the issue.

    I’ve created two fresh installations with the versions 13.4.9 and 13.4.8 without installing any extra extensions.

    For reproducibility, I’ve followed install instructions for DDEV: [[https://get.typo3.org/version/13#version-download]]

    For the 13.4.8 installation, in the composer.json file I changed all version numbers from "^13.4" to the fix version "13.4.8" .

    Results:

    • In the 13.4.9 instance, the same issue occurred as described in this bug report.
    • In the 13.4.8 instance, the issue didn’t occur. Only the translated page was deleted.
  3. Christian Kuhn commented <span data-processor="relativetime" data-value="2025-05-07T11:07:29+00:00" > 05/07/25, 11:07 </span>

    Thank you! Great analysis. git bisect says this was introduced with #106382, which was a hairy but rather important change. I’ll see what I can do to fix the situation.

  4. Christian Kuhn commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2025-05-08T09:05:09+00:00" > 05/08/25, 09:05 </span>

    Applied in changeset commit:435b39efb45b7c7f57956f52d4d7631769992963.