Review main Merged

96163[BUGFIX] Respect enable field settings for Extbase MM relations

Georg Ringer CR +2 V +2 Normal +122 −0 updated 10/15/26, 08:35

Commit message

Extbase resolves MM relations with a query whose source is a join
of the MM table and the child table. For such queries, the Doctrine
QueryBuilder kept its DefaultRestrictionContainer, so "deleted",
"hidden", "starttime" and "endtime" of the child table were always
added to the join condition.

The query settings "ignoreEnableFields" and "enableFieldsToBeIgnored"
had no effect on these relations, hidden related records could never
be fetched and the "deleted" constraint ended up twice in the query.

The default restrictions are now removed for join queries as well,
as it is already done for regular queries. The visibility is then
handled by Extbase alone, based on the query settings.

Review

  • Code review CR +2 Done
    • Georg Ringer +2
    • Markus Klein +1
    • Benni Mack +1
  • Verified V +2 Done
    • Georg Ringer +2
    • Markus Klein +1
    • Benni Mack +1
    • core-ci +1 CI

Issues 2

Files 3

Review log 1012

  1. Georg Ringer uploaded patch set 1 09/29/26, 15:42

  2. Georg Ringer commented on patch set 1 09/29/26, 15:43

    This change is ready for review.
  3. core-ci voted on patch set 1 V +1 09/29/26, 15:50 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/109513

  4. Georg Ringer rebased onto patch set 2 V +1 09/30/26, 06:36

  5. Benni Mack voted on patch set 2 CR +1 V +1 09/30/26, 06:36

  6. core-ci voted on patch set 2 V +1 09/30/26, 06:46 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/109579

  7. Markus Klein commented on patch set 2 CR -1 10/02/26, 07:02

    tmp -1 for checking something
  8. Markus Klein voted on patch set 2 CR +1 10/02/26, 07:12

  9. Markus Klein voted on patch set 2 V +1 10/02/26, 07:12

  10. Georg Ringer voted on patch set 2 CR +2 V +2 10/02/26, 07:13

  11. Georg Ringer merged patch set 3 10/02/26, 07:52

  12. Garvin Hicking wrote 10/15/26, 08:35

    Hashtag added: no-backport