Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Bulk forms that are not media_bulk_form are missing and its caused by a new bulk sticky appearing unset($form['header'][$key]);
and static $form['header']['media_bulk_form']['#attributes']['class'][] = 'media-library-views-form__bulk_form';
Steps to reproduce
Drupal version: D10.2.4
Install bulk_form
module as example; VBO
Go to URL "/admin/content/media-grid"
Proposed resolution
Adding $form['header']['media_bulk_form']['#attributes']['class'][] = 'media-library-views-form__bulk_form';
dynamically as follows;
foreach (Element::children($form['header']) as $key) {
if (str_contains($key, '_bulk_form')) {
$form['header'][$key]['#attributes']['class'][] = 'media-library-views-form__bulk_form';
}
}
Comment | File | Size | Author |
---|---|---|---|
#2 | missing-bulk-operations-grid-view.patch | 1.07 KB | Ammar_Jeetawi |
Comments
Comment #2
Ammar_Jeetawi CreditAttribution: Ammar_Jeetawi commentedThis patch should be included in core, it works with version 10.2.3
Comment #3
Ahmad Khader CreditAttribution: Ahmad Khader at Vardot commentedComment #4
Ahmad Khader CreditAttribution: Ahmad Khader at Vardot commentedComment #5
Ahmad Khader CreditAttribution: Ahmad Khader at Vardot commentedI can confirm that the patch fixes the problem.
Comment #6
Ahmad Khader CreditAttribution: Ahmad Khader at Vardot commented