#89787Copying element with IRRE element from one language to another
Description
When copying an IRRE content element from one language to another (for example with drag and drop, in our case from sys_language_uid 1 to sys_language_uid 0) changes the language for the parent element but not for the child elements.
We use for localisation a single page tree with free mode.
Reviews 6
- 14.3 96783[BUGFIX] Align language of inline children with their parent
- main 87595[BUGFIX] Align language of inline children with their parent
- 13.4 89297[BUGFIX] Preserve language of translations on copy
- main 88827[BUGFIX] Preserve language of translations on copy
- main 86773[BUGFIX] Sync language of inline children on copy
- 13.4 87689[BUGFIX] Sync language of inline children on copy
Related issues 8
- Bug #39054Copied Content Elements incorrectly inherit language
- Bug #75400Related child elements don't get correct sys_language_uid during localization of parent record
- Bug #103969Update language of inline elements is missing, leading to follow up issues
- Task #104956Add test for langugae behaviour of inline children on copy
- Bug #106334Translations of copied elements end up in default language
- Bug #106655pasteDataMap overridden for each command in DataHandler::process_cmdmap
- Bug #110497TCEFORM sys_language_uid.disabled = 1 doesn't write correct defaults into translated entries breaking loading of IRRE for child elements
- Bug #110498sys_file_reference value of sys_language_uid is assigned with a value of 0 in a translated model if the referenced sys_file has been used by a base language object
History 2642
Show 1317 earlier messages
-
Chris Müller changed category <span data-processor="relativetime" data-value="2019-11-27T14:19:08+00:00" > 11/27/19, 14:19 </span>
-
Chris Müller changed description <span data-processor="relativetime" data-value="2019-11-27T14:19:42+00:00" > 11/27/19, 14:19 </span>
-
Susanne Moog changed Sprint Focus On Location Sprint <span data-processor="relativetime" data-value="2020-01-12T12:51:55+00:00" > 01/12/20, 12:51 </span>
-
Helmut Hummel changed status
NewAccepted <span data-processor="relativetime" data-value="2020-04-27T15:15:24+00:00" > 04/27/20, 15:15 </span> -
Oliver Hader changed Sprint Focus
On Location Sprint<span data-processor="relativetime" data-value="2022-11-03T09:04:23+00:00" > 11/03/22, 09:04 </span> -
Denis Mir commented and changed priority
Should haveMust have <span data-processor="relativetime" data-value="2024-02-07T07:31:59+00:00" > 02/07/24, 07:31 </span> -
Denis Mir commented and changed TYPO3 Version
911 <span data-processor="relativetime" data-value="2024-02-07T07:32:40+00:00" > 02/07/24, 07:32 </span>Found in the current 11LTS release as well.
-
Denis Mir commented and changed TYPO3 Version
1112 <span data-processor="relativetime" data-value="2024-09-05T09:56:20+00:00" > 09/05/24, 09:56 </span>Error is still present in 12LTS. Even the `l10n_source` is not set at all.
-
Jo Hasenau commented <span data-processor="relativetime" data-value="2024-09-05T11:07:05+00:00" > 09/05/24, 11:07 </span>
Denis Mir wrote in #note-8:
> Error is still present in 12LTS. Even the `l10n_source` is not set at all.That’s correct, since you are not actually translating but just copying elements around.
If you want an l10n_source to be present, there has to be a real translation action before.
So you should use the translation modal and the so called “Free Mode” to get elements into another language.IMHO the actual bug is, that you can copy elements from one language to another.
-
Chris Müller commented <span data-processor="relativetime" data-value="2024-09-05T11:45:04+00:00" > 09/05/24, 11:45 </span>
Problem for us was: We have English as primary language and then German. Nowadays, we write first the German content (and publish it) – then it is translated some weeks later to English (and published). As there is no “Translate back to default language) we have to copy these elements. And for “standard” elements it works (language id is adjusted) – but not for IRRE elements.
Of course, I suggested to our editors, first to set the content element in English (with German texts), if it is done, “translate” to German. Then only the content in English has to translated (but without touching the structure). But editors …
And: English as default language was a conscious decision we made quite some years ago (which does not work anymore for us). And we need free mode, as on some pages the content structure is different for languages, so we have to go with free mode.
So: copying content elements is a use case. If this is “wrong”, then the Core should prevent that (but then we need a translate to the default language). Or if it is possible: it should be fixed somehow.
-
Johannes Seipelt commented <span data-processor="relativetime" data-value="2024-09-05T11:54:10+00:00" > 09/05/24, 11:54 </span>
To add: the fact that the parent element gets the correct language uid set, but not the IRRE childs is wrong in my pov. Which is what was described in this issue in the first place.
-
Denis Mir commented <span data-processor="relativetime" data-value="2024-09-05T12:01:38+00:00" > 09/05/24, 12:01 </span>
I agree with what Chris said. And it goes even further. We have free mode in some projects all around since the page content completely differs between the different locales.
And it always happens in these projects that we have e.g. Site A with Page B and Language de_DE and the editor copies one of the elements from this page to Site B, Page D and Language de_AT.
This action is possible currently and should be possible in the future. But it gets the described behavior. Wrong “sys_language_uid” for the IRRE stuff and even the related “sys_file_reference” entries.
So I would definitely say this is a bug and should be fixed. Just removing the feature is not an option.
-
Astrid Haubold changed Related to #104956 <span data-processor="relativetime" data-value="2024-09-13T09:39:08+00:00" > 09/13/24, 09:39 </span>
-
Gerrit Code Review pushed patch set 1 for main to change 86773 status
AcceptedUnder Review <span data-processor="relativetime" data-value="2024-10-25T08:03:43+00:00" > 10/25/24, 08:03 </span> -
Gerrit Code Review pushed patch set 2 for main to change 86773 <span data-processor="relativetime" data-value="2024-10-25T08:13:29+00:00" > 10/25/24, 08:13 </span>
-
Gerrit Code Review pushed patch set 3 for main to change 86773 <span data-processor="relativetime" data-value="2024-11-01T11:57:42+00:00" > 11/01/24, 11:57 </span>
-
Gerrit Code Review pushed patch set 4 for main to change 86773 <span data-processor="relativetime" data-value="2024-12-12T11:55:49+00:00" > 12/12/24, 11:55 </span>
-
Gerrit Code Review pushed patch set 5 for main to change 86773 <span data-processor="relativetime" data-value="2024-12-16T15:15:06+00:00" > 12/16/24, 15:15 </span>
-
Gerrit Code Review pushed patch set 6 for main to change 86773 <span data-processor="relativetime" data-value="2024-12-20T13:14:47+00:00" > 12/20/24, 13:14 </span>
-
Sybille Peters commented <span data-processor="relativetime" data-value="2025-01-05T08:59:24+00:00" > 01/05/25, 08:59 </span>
I can reproduce this with “Text & Media” and “Media elements” [assets] field (sys_file_reference):
Steps to reproduce:
1. Create a “Text & Media“
2. Add a file in tab “Media” => “Media elements” [assets]
3. create translation for page
4. copy the content element to the translated pageCheck in database: both records have sys_language_uid=0
select uid,pid,sys_language_uid,uid_foreign from sys_file_reference where pid=920 and not deleted; +-----+-----+------------------+-------------+ | uid | pid | sys_language_uid | uid_foreign | +-----+-----+------------------+-------------+ | 445 | 920 | 0 | 195 | | 446 | 920 | 0 | 196 | +-----+-----+------------------+-------------+
-
Sybille Peters changed Related to #103969 <span data-processor="relativetime" data-value="2025-01-05T09:00:40+00:00" > 01/05/25, 09:00 </span>
-
Gerrit Code Review pushed patch set 7 for main to change 86773 <span data-processor="relativetime" data-value="2025-01-09T11:43:16+00:00" > 01/09/25, 11:43 </span>
-
Gerrit Code Review pushed patch set 8 for main to change 86773 <span data-processor="relativetime" data-value="2025-01-09T15:39:55+00:00" > 01/09/25, 15:39 </span>
-
Gerrit Code Review pushed patch set 9 for main to change 86773 <span data-processor="relativetime" data-value="2025-01-09T16:14:11+00:00" > 01/09/25, 16:14 </span>
-
Gerrit Code Review pushed patch set 10 for main to change 86773 <span data-processor="relativetime" data-value="2025-01-09T16:27:39+00:00" > 01/09/25, 16:27 </span>
-
Gerrit Code Review pushed patch set 11 for main to change 86773 <span data-processor="relativetime" data-value="2025-01-09T16:48:12+00:00" > 01/09/25, 16:48 </span>
-
Gerrit Code Review pushed patch set 12 for main to change 86773 <span data-processor="relativetime" data-value="2025-01-09T16:55:30+00:00" > 01/09/25, 16:55 </span>
-
Christian Kuhn changed Related to #75400 <span data-processor="relativetime" data-value="2025-01-09T16:57:23+00:00" > 01/09/25, 16:57 </span>
-
Gerrit Code Review pushed patch set 13 for main to change 86773 <span data-processor="relativetime" data-value="2025-01-09T16:57:44+00:00" > 01/09/25, 16:57 </span>
-
Christian Kuhn changed Related to #39054 <span data-processor="relativetime" data-value="2025-01-09T17:01:57+00:00" > 01/09/25, 17:01 </span>
-
Gerrit Code Review pushed patch set 14 for main to change 86773 <span data-processor="relativetime" data-value="2025-01-09T17:16:10+00:00" > 01/09/25, 17:16 </span>
-
Gerrit Code Review pushed patch set 15 for main to change 86773 <span data-processor="relativetime" data-value="2025-01-09T17:17:42+00:00" > 01/09/25, 17:17 </span>
-
Gerrit Code Review pushed patch set 1 for 13.4 to change 87689 <span data-processor="relativetime" data-value="2025-01-10T09:55:20+00:00" > 01/10/25, 09:55 </span>
-
Astrid Haubold commented and changed status
Under ReviewResolved done0 %100 % <span data-processor="relativetime" data-value="2025-01-10T10:10:09+00:00" > 01/10/25, 10:10 </span>Applied in changeset commit:e2f79307299f3d5a1c5aa792c5f1efd1d09f681f.
-
Denis Mir commented <span data-processor="relativetime" data-value="2025-02-21T07:30:22+00:00" > 02/21/25, 07:30 </span>
Heya guys. One quick question. Was it intended that the bug mentioned in https://forge.typo3.org/issues/89787 was not fixed for 12LTS? We yesterday got the case that these incorrectly set `sys_language_uid` values in the `sys_file_reference` table lead to thousands of deleted `sys_file_reference` entries due to deleting some no longer needed page translation records (that had the same `sys_language_uid`) without the editor even knowing.
This is a real problem for 12LTS. And it is a problem for updated 13LTS installations that still have thousands of incorrectly set `sys_language_uid` values in the `sys_file_reference` table.
-
Astrid Haubold changed Related to #106334 <span data-processor="relativetime" data-value="2025-03-07T14:26:40+00:00" > 03/07/25, 14:26 </span>
-
Benjamin Bomberg commented <span data-processor="relativetime" data-value="2025-04-01T14:35:05+00:00" > 04/01/25, 14:35 </span>
I have a similar problem:
An inline connection between tt_content and a custom DB table.
After creating it in the default language, the inline element remains in the default language when copying the element to another language. However, the content element itself changes to the correct language.
Is there a patch for this in TYPO3 11? -
Christian Kuhn commented <span data-processor="relativetime" data-value="2025-05-05T09:43:23+00:00" > 05/05/25, 09:43 </span>
Denis Mir wrote in #note-35:
> Heya guys. One quick question. Was it intended that the bug mentioned in https://forge.typo3.org/issues/89787 was not fixed for 12LTS?Hey. Yes: We think the patch was too risky for v12 so we only applied to v13 and main. It indeed had a bug that we have to fix now, see https://review.typo3.org/c/Packages/TYPO3.CMS/+/88827. If you really need that in v12, you’ll have to patch the instance yourself.
-
Georg Ringer changed Related to #106655 <span data-processor="relativetime" data-value="2025-05-06T09:44:31+00:00" > 05/06/25, 09:44 </span>
-
Benni Mack changed status
ResolvedClosed <span data-processor="relativetime" data-value="2025-12-02T14:36:46+00:00" > 12/02/25, 14:36 </span> -
Benni Mack changed Related to #110498 <span data-processor="relativetime" data-value="2026-10-23T05:12:36+00:00" > 10/23/26, 05:12 </span>
-
Benni Mack changed Related to #110497 <span data-processor="relativetime" data-value="2026-10-23T05:12:38+00:00" > 10/23/26, 05:12 </span>
We experience this bug in 11LTS as well and I don’t get why such a bug is a “should have”. This is an absolute must have to finally fix the translation related bugs.