Review 13.4 Merged

89646[TASK] Resolve two group/select related scenario todos

Christian Kuhn CR +2 V +2 Easy +7 −2 updated 06/05/25, 15:03

Commit message

TCA setting 'localizeReferencesAtParentLocalization' on type=group
and type=select fields allows to localize a sibling upon localizing
a related record.

In contrast to simple type=inline configurations that represent a
parent-child relation, type=group and select represent 'sibling'
relations (two persons may have the same sister). It
is a nice usability asset that siblings can be auto-localized when
localizing a referencing record. Patch #41713 looked at this detail
and left two todo comments questioning the discard and publish
behavior.

Looking at these comments, we now clarify the behavior. When some
sibling triggered the localization of a group or select related
record, we should not discard or publish these localized records
when the related record is discarded or published. Such siblings
need to be actively selected to be discarded or published by
editors even if they have been auto-created since we can never
know which other potential sibling may have created the overlay:
Auto discarding or publishing siblings may change the relation
integrity of other records unintentionally.

The patch turns the todo questioning this behavior into a comment
declaring it as intended.

Review

  • Code review CR +2 Done
    • Christian Kuhn +2
  • Verified V +2 Done
    • Christian Kuhn +2
    • core-ci +1 CI

Issues 2

Files 2

Review log 34

  1. Christian Kuhn uploaded patch set 1 06/05/25, 13:00

  2. core-ci voted on patch set 1 V +1 06/05/25, 13:09 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/79931

  3. Christian Kuhn voted on patch set 1 CR +2 V +2 06/05/25, 15:03

  4. Christian Kuhn merged patch set 2 06/05/25, 15:03