Unverified Commit a721bed4 authored by alexpott's avatar alexpott
Browse files

Issue #3055648 by bnjmnm, alexpott, Krzysztof Domański, phenaproxima, oknate,...

Issue #3055648 by bnjmnm, alexpott, Krzysztof Domański, phenaproxima, oknate, larowlan: Frequent random fail in \Drupal\Tests\media_library\FunctionalJavascript\MediaLibraryTest

(cherry picked from commit 312ce8ec)
parent 6c2d96c3
......@@ -51,6 +51,11 @@ public function viewsForm(array &$form, FormStateInterface $form_state) {
'class' => ['media-library-views-form', 'js-media-library-views-form'],
];
// Add an attribute that identifies the media type displayed in the form.
if (isset($this->view->args[0])) {
$form['#attributes']['data-drupal-media-type'] = $this->view->args[0];
}
// Render checkboxes for all rows.
$form[$this->options['id']]['#tree'] = TRUE;
foreach ($this->view->result as $row_index => $row) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment