Problem/Motivation
When deleting a user role in Drupal 10.1.8, the associated views are also automatically deleted, even if the view has multiple roles assigned to it. This is unexpected behavior, as the correct behavior should be to only remove the deleted role from the view, while preserving the rest of the view's configuration.
Steps to reproduce
- Create a view in Drupal 10.1.8 and assign multiple roles to it.
- Delete one of the roles assigned to the view.
- Observe that the entire view is deleted, instead of just the deleted role being removed from the view.
Proposed resolution
The proposed resolution is to fix the behavior so that when a role is deleted, only that role is removed from the associated views, while preserving the rest of the view's configuration.
Remaining tasks
User interface changes
Introduced terminology
API changes
Data model changes
Release notes snippet
| Comment | File | Size | Author |
|---|---|---|---|
| IrpUOkAzrK.png | 103.91 KB | camilo 1990 |
Comments
Comment #2
cilefen commentedThis is not a bug because the delete form properly warns the administrator what will happen. We added that in #2468045: When deleting a content type field, users do not realize the related View also is deleted. In the past Drupal did not warn you!
This could be a feature request, but in that case it may not actually be safe to adjust the permissions of views because that could make the views available to others, etc. It would have to be done carefully.
Finally, be sure to test on a supported release. 10.1.x is unsupported.