Issue Bug Needs Feedback

#93532Localize of group breaks referenced record uid

Daniel Siepmann 02/17/21, 13:28 updated 11/09/26, 12:13

Description

Setup to reproduce:

  1. Create some kind of record with uid 1.
  2. Create a content element with uid 1 in default language.
  3. Use CType “shortcut” and select the foreign record with uid 1.
  4. Create a foreign language
  5. Translate the page with content element.
  6. Translate the content of the page.

Expected result: A new content element with uid 2 should be created. “records” field should contain 1.
Actual result: A new content element with uid 2 is created. “records” field contains 2.

The DataHandler actually tries to update references. If the field “records” includes references to the same uid as the language parent, then those uids are updated to the new uid. This happens within DataHandler->remapListedDBRecords()

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

Fix this issue

Start the commit message of your patch with this. Add what the patch does, and the versions it goes to in "Releases:". How to create a patch

Commit message
[BUGFIX] Localize of group breaks referenced record uid Resolves: #93532 Releases: main

History 1

  1. Benni Mack commented and changed status New Needs Feedback <span data-processor="relativetime" data-value="2026-11-09T12:13:57+00:00" > 11/09/26, 12:13 </span>

    I tried to reproduce this on current main (v15) with a functional test: a content element uid 1 referencing a foreign record uid 1 in a group field (single-table and multi-table allowed), then localizing the element. The localized element keeps the reference to the foreign record uid 1; DataHandler only remaps references whose table and uid match a copied record.

    The described behaviour can only occur if the stored value has no table prefix while the field allows multiple tables (e.g. 1 instead of tx_foo_1), because then the first allowed table (tt_content) is assumed. Could you share the TCA of the field and the raw value stored in the database? Otherwise we’ll close this issue as not reproducible.