Rabbit Hole form appears on Media Revision Delete

Created on 26 September 2024, about 2 months ago

Problem/Motivation

As of Drupal Core 10.2.x Media provides a UI for viewing, reverting, and deleting revisions β†’ . On delete of a revision the rabbit hole form is appearing. This should probably be handled the same way it is handled on Node deletion where this is not shown.

I was also seeing this cause an issue where if rh_media was enabled, it prevented the deletion of any media revisions in this new UI in core.

Steps to reproduce

- Enable rh_media
- Have a media type defined (ex. image)
- Create a new media entity
- Edit that entity and ensure a new revision is created
- Edit the entity again and go to the revisions tab
- Click the delete button on the non-active revision
- On the delete confirmation screen the Rabbit Hole interface is displayed
- Clicking to confirm the deletion reloads the page and the delete is not processed

Proposed resolution

Add `revision-delete` to the `$disallowed_operations` array in `rabbit_hole.module`

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States mrdrewkeller

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024