Skip to content
Snippets Groups Projects
Commit d28f7b04 authored by André Buchmann's avatar André Buchmann Committed by Christian Kuhn
Browse files

[BUGFIX] Prevent creation of orphaned records in copy process

When records are copied, DataHandler copies its localizations as
well. This is good, but can lead to "orphan" localization records
if the target page a record is copied to is not localized to that
language.

This is inconsistent and leads to various headaches with access
rights and when localized records are synchronized later.
Also, such localized records suddenly appear, when the parent
page is localized to the missing target language, which is an
unexpected behavior for BE editors.

The patch changes this by skipping copying localizations of
records when the target page is not localized to that language.

Note DH method copyL10nOverlayRecords() will receive another
clean up with another patch to rule out some shenanigans we
stumbled upon when implementing this solution.

Resolves: #103828
Releases: main
Change-Id: Iee5530a5c6dc29180c423301b07f8cf7ecf84fc1
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/84237


Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
parent fcace3f5
Branches
Tags
Showing
with 20 additions and 26 deletions
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment