Review 14.3 Merged

95778[BUGFIX] Allow to modify the actions in the workspaces module

Benni Mack CR +2 V +2 Hard +328 −82 updated 09/11/26, 23:21

Commit message

The record table of the workspaces module renders a fixed set of
action buttons per record. Listeners of the PSR-14 event
AfterDataGeneratedForWorkspaceEvent can enrich the records shown
in the module, but they can neither add a button of their own nor
hide or disable one of the buttons the module renders itself, which
leaves overriding the module JavaScript as the only option.

The buttons of a record are now described in an "actions" section
that listeners can modify. It is determined after the event has
been dispatched and merged with what listeners provided, so the
permissions of a record still yield the default state, and
listeners modifying those keep working as before.

The module additionally broke for records sitting in a stage that
has been removed from the workspace: getRowDetails() allows the
stage to be unresolvable, but dereferenced it unconditionally
afterwards. Since versionIsModified() calls that method for every
record of the grid and catches RuntimeException only, one such
record took down the whole module with a TypeError.

Review

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

Issues 1

Files 6

Review log 34

  1. Benni Mack commented on patch set 1 09/11/26, 23:01

    Cherry Picked from branch main.
  2. core-ci voted on patch set 1 V +1 09/11/26, 23:13 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/108362

  3. Benni Mack voted on patch set 1 CR +2 V +2 09/11/26, 23:21

  4. Benni Mack merged patch set 2 09/11/26, 23:21