- Issue created by @Anybody
- 🇩🇪Germany Anybody Porta Westfalica
Any ideas how VBO could leak into the other view displays? That information might help a lot to find the root cause.
- 🇩🇪Germany Anybody Porta Westfalica
PS: I have to admit, I'm still not 100% sure it's a VBO bug. There's still a chance that it's a Core Media Library bug. We'll have to dig deeper...
- 🇧🇪Belgium flyke
I have a media library view with VBO that was working on Drupal 9, but is no longer working after updating to Drupal 10.
Haven't figured out exact cause or solution yet, only that update from D9 to D10 caused it to not work.
The HTML structure regarding VBO is entirely different as you can see in these screenshots.
In D10, the
Whatever core logic does something with 'media_bulk_form' might be the culprit. - 🇧🇪Belgium flyke
This section is new in claro.theme in Drupal 10. The claro.theme in Drupal 9 does not contain any 'bulk_actions_container' reference.
Need more time and testing but It's possible this is causing it - 🇧🇪Belgium flyke
It's only this single line that causes the problem (
core/themes/claro/claro.theme
around line 446):
unset($form['header'][$key]);
Comment out that line and VBO works on the Media Library !I am now busy with another problem: in my project, VBO only works well on the first page of the Media Library.
If I select items on the second page (using the views pager to go to page 2 of the media library items) then VBO still thinks I am selecting items on the first page.Example: if your pager shows 10 media items per page, and you have 20 media items and you are on page 2 and you select for example the first and third item of page two (which are the 11th and 13th media items) and choose the unpublish VBO action, then media item 1 and 3 will be unpublished instead of 11 and 13 :-|
- 🇯🇴Jordan Ahmad Khader
Please check if this issues ticket's patch to Missing views bulk operations on the media library view. 🐛 Missing views bulk operations on the media library view Needs review