Review main Merged

97187[BUGFIX] Revert slug changes of all pages saved together

Oli Bartsch CR +2 V +2 Hard +363 −36 updated 10/28/26, 13:35

Commit message

When the slugs of several pages were changed in one DataHandler call,
e.g. via "Edit columns" in the record list, the "Slugs updated and
redirects created" notification only reverted the page processed last.

SlugService sends one update signal per changed page, but
BackendUtility::setUpdateSignal() stores signals by their name. Each
page therefore overwrote the notification payload of the previous one.

SlugService now collects the payloads of all pages changed within the
request and stores them in one update signal. The
DispatchNotificationHook dispatches the unchanged slug changed event
for each page, and the event handler combines the events into a single
notification, whose actions revert the changes of all pages, the most
recent first. One notification per page is not an option, because a
revert reloads the backend and drops all other notifications.

Since a combined notification is meaningless without saying what it
reverts, the payload now carries the changed page with its old and new
slug, and the number of updated sub-pages and created redirects. The
notification names the changed pages and sums up what was changed
along with them. No notification is sent anymore if neither sub-pages
were updated nor redirects were created, since there is nothing to
report besides the change the user just made.

Review

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

Issues 1

Files 7

Review log 1114

  1. Oli Bartsch uploaded patch set 1 10/28/26, 09:23

  2. core-ci voted on patch set 1 V +1 10/28/26, 09:36 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/112689

  3. Benni Mack voted on patch set 1 CR +1 V +1 10/28/26, 09:57

  4. Oli Bartsch uploaded patch set 2 CR +1 V +1 10/28/26, 10:26

  5. core-ci voted on patch set 2 V +1 10/28/26, 10:35 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/112703

  6. Oli Bartsch commented on patch set 2 V -1 10/28/26, 11:15

    on it
  7. Josua Vogel voted on patch set 2 CR +1 V +1 10/28/26, 11:37

  8. Oli Bartsch uploaded patch set 3 CR +1 V +1 10/28/26, 11:43

  9. Oli Bartsch commented on patch set 3 10/28/26, 11:44

    Reply

    Done
  10. Josua Vogel voted on patch set 3 CR +1 V +1 10/28/26, 11:47

  11. core-ci voted on patch set 3 V +1 10/28/26, 11:50 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/112705

  12. Benni Mack voted on patch set 3 CR +1 V +1 10/28/26, 12:37

  13. Oli Bartsch voted on patch set 3 CR +2 V +2 10/28/26, 13:35

  14. Oli Bartsch merged patch set 4 10/28/26, 13:35