Missing views bulk operations on the media library view

Created on 13 March 2024, 8 months ago
Updated 28 March 2024, 8 months ago

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';
        }
      }
🐛 Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

🇵🇰Pakistan zubair-rana

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

Comments & Activities

Production build 0.71.5 2024