Review 13.4 Merged

89598[TASK] Revert record type permission handling

Oli Bartsch CR +2 V +2 Normal +1 −76 updated 05/31/25, 09:34

Commit message

This reverts #94408 as well as the corresponding
follow up #106697.

Reason for revert:

The implemented permission handling fails to
correctly generate the `$validItems` list. The
added "exclude" logic operates on the static
`items` array, but calculating `$validTypes`
requires accounting for all dynamic sources
such as itemsProcFunc and TSconfig options
like `addItems`. As implemented, this would
only work for record type fields using a TCA
type that directly defines `items`, limiting
its applicability.

Extending AbstractItemProvider highlights this
issue and arguably misuses the abstraction. At
this stage, reliably determining `$validTypes`
would require duplicating significant parts
of the data provider logic. Furthermore, as
said, record type field values might originate
from group fields or other complex configurations
as well, not just "select".

Review

  • Code review CR +2 Done
    • Oli Bartsch +2
  • Verified V +2 Done
    • Oli Bartsch +2
    • core-ci +1 CI

Issues 1

Files 2

Review log 34

  1. Oli Bartsch commented on patch set 1 05/31/25, 08:39

    Cherry Picked from branch main.
  2. core-ci voted on patch set 1 V +1 05/31/25, 08:47 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/79714

  3. Oli Bartsch voted on patch set 1 CR +2 V +2 05/31/25, 09:34

  4. Oli Bartsch merged patch set 2 05/31/25, 09:34