Issue Bug Closed

#101168Copy elements with IRRE field deletes copied translations

Nicole Hummel 06/26/23, 13:37 updated 11/10/26, 20:49

Description

Given:

- system with at least two languages
- install the attached extension
- create a new page and translate into another language
- create a new content element “copy_irre” and attach a child link
- translate the content element into the other language
- change the link label of the translated child link
- copy the content element and paste it anywhere on the site

Expectation:

- a copied content element should be visible
- the label of the translated child should match the original translation

Actual:

- the original link gets synchronized again, the label gets lost

It seems the correct translation is created first but gets deleted again and a new synchronization is created.

The copy & paste steps work correctly if the allowLanguageSynchronization is turned off.

Reviews 1

Files 3

History 4

  1. Garvin Hicking commented and changed category <span data-processor="relativetime" data-value="2024-07-31T10:59:19+00:00" > 07/31/24, 10:59 </span>

    (I believe I’ve found at least 1 or 2 bug reports like this, could need some digging with “allowLanguageSynchronization” and “copy”, “paste” keywords; for now only adjusting category)

  2. Georg Ringer commented and changed status New Closed <span data-processor="relativetime" data-value="2026-11-10T20:49:24+00:00" > 11/10/26, 20:49 </span>

    I tried to reproduce this on current main with a functional test: a tt_content record with an inline relation (foreign_field = parentid, foreign_table_field = parenttable, parentidentifier), a translated parent in a second language and a translated child whose label was changed. The site knows the language and the target page is translated. I then copied the default language element with the DataHandler copy command, once with and once without allowLanguageSynchronization on the inline field.

    In all cases the copied translated child keeps its changed label, it is not synchronized back to the default language value. So the described behaviour could not be reproduced.

    I did not test with the Mask based extension from the attachment itself, only with the core test fixtures (test_irre_foreignfield).

    If this is still valid for you in v14, please open a new issue and provide information how to reproduce it. Thanks!