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';
        }
      }
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

zubair-rana created an issue. See original summary.

Ammar_Jeetawi’s picture

This patch should be included in core, it works with version 10.2.3

Ahmad Khader’s picture

Ahmad Khader’s picture

Component: User interface » Code
Status: Active » Needs review
Ahmad Khader’s picture

I can confirm that the patch fixes the problem.

Ahmad Khader’s picture

Issue summary: View changes