Issue Bug Closed

#106812Localizing and modifying of bidirectional MM relations causes errors

Oliver Bartsch 06/02/25, 19:12 updated 12/02/25, 13:59

Description

In scenarios where both sides of a MM relation are editable, localization in combination with modify those records afterwards causes problems like duplicated MM table entries resulting in e.g. having both the default record and the translated record attached to the default opposite record.

Example scenario with the https://github.com/TYPO3GmbH/blog extension.

  • Create a blog post
  • Create an author and attach to the blog post
  • Translate the blog post
  • Translate the author

Until now all fine. Now modify one of the author records (no matter default or translation)

Result: The default blog post now shows two authors (the default and the translation)

Reviews 4

History 411

  1. Oliver Bartsch commented <span data-processor="relativetime" data-value="2025-06-02T19:16:20+00:00" > 06/02/25, 19:16 </span>

    Corresponding MM table behaviour for scenario: Default blog post (575), translated blog post (590), default author (28) and translated author (37).

    _.uid_local _.uid_forein
    575 28
    590 28

    Edit default author (28):

    _.uid_local _.uid_forein
    575 28
    575 37

    Edit translated author (2837:

    _.uid_local _.uid_forein
    575 28
    575 37
    590 28
    590 37
  2. Gerrit Code Review pushed patch set 21 for main to change 89281 status New Under Review <span data-processor="relativetime" data-value="2025-06-02T19:16:33+00:00" > 06/02/25, 19:16 </span>

  3. Oliver Bartsch commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2025-06-04T13:05:08+00:00" > 06/04/25, 13:05 </span>

    Applied in changeset commit:86a78ef29c60dde7fca7defaf2f8d5ff84c70943.