Review 13.4 Merged

92757[BUGFIX] Restrict copied record translations to target site languages

Benni Mack CR +2 V +2 Normal +160 −5 updated 02/10/26, 10:01

Commit message

When pages are copied, all existing page translations are currently
copied as well, regardless of the language configuration of the target
site. This can lead to page translations that are not usable or
manageable in the destination context.

This change introduces language filtering based on the configured
languages of the site configuration during the copy process. Record
translations are only copied if their language is configured in the
target site resolved from the destination PID. If no target site can be
determined, no translations will be copied.

Tests are being adapted to cover copying translated pages into sites
with limited or partial language configurations.

Review

  • Code review CR +2 Done
    • Oliver Hader +2
  • Verified V +2 Done
    • Oliver Hader +2
    • core-ci +1 CI

Issues 2

Files 6

Review log 610

  1. Benni Mack commented on patch set 1 02/09/26, 18:25

    Cherry Picked from branch main. The following files contain Git conflicts: * typo3/sysext/core/Classes/DataHandling/DataHandler.php * typo3/sysext/core/Tests/Unit/DataHandling/DataHandlerTest.php
  2. Benni Mack commented on patch set 2 02/09/26, 18:26

    Published edit on patch set 1.
  3. Benni Mack marked it ready for review 02/09/26, 18:27

  4. core-ci voted on patch set 2 V +1 02/09/26, 18:37 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/95481

  5. core-ci voted on patch set 1 V -1 02/09/26, 18:38 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/95480

  6. core-ci voted on patch set 1 V -1 02/10/26, 09:43 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/95480

  7. Benni Mack rebased onto patch set 3 V +1 02/10/26, 09:50

  8. core-ci voted on patch set 3 V +1 02/10/26, 10:00 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/95530

  9. Oliver Hader voted on patch set 3 CR +2 V +2 02/10/26, 10:00

  10. Oliver Hader merged patch set 4 02/10/26, 10:01