Skip to content
Snippets Groups Projects
Commit 76dd5233 authored by Benni Mack's avatar Benni Mack Committed by Stefan B�rk
Browse files

[BUGFIX] Ensure copied records keep l10n_state behavior

This change adds a test for localized pages that have
a l10n_source "custom" value (e.g. "pages.author").

When copying the page and its translation,
the l10n_state field is then set to "source",
which is wrong.

copyRecord() sets l10n_source=0, however DataMapItem
expects "null". The patch makes DataMapItem understand
0 as value for l10n_source as well.

Resolves: #88974
Releases: main, 12.4
Change-Id: I326765d92ea52bb49d94bc4965b998b993b5e673
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/80572


Reviewed-by: default avatarStefan B�rk <stefan@buerk.tech>
Tested-by: default avatarStefan B�rk <stefan@buerk.tech>
Tested-by: default avatarcore-ci <typo3@b13.com>
parent 25a65706
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