diff -u b/core/modules/media_library/config/install/views.view.media_library.yml b/core/modules/media_library/config/install/views.view.media_library.yml --- b/core/modules/media_library/config/install/views.view.media_library.yml +++ b/core/modules/media_library/config/install/views.view.media_library.yml @@ -320,15 +320,11 @@ sort_order: asc number_of_records: 0 format: default_summary - specify_validation: true + specify_validation: false validate: - type: 'entity:media_type' - fail: 'access denied' - validate_options: - access: true - operation: view - multiple: 0 - bundles: { } + type: none + fail: 'not found' + validate_options: { } glossary: false limit: 0 case: none diff -u b/core/modules/media_library/tests/modules/media_library_test/config/install/media.type.type_one.yml b/core/modules/media_library/tests/modules/media_library_test/config/install/media.type.type_one.yml --- b/core/modules/media_library/tests/modules/media_library_test/config/install/media.type.type_one.yml +++ b/core/modules/media_library/tests/modules/media_library_test/config/install/media.type.type_one.yml @@ -3,14 +3,14 @@ dependencies: module: - media - - media_test_handler + - media_test_source id: type_one label: 'Type One' description: '' -handler: test +source: test queue_thumbnail_downloads: false new_revision: false -handler_configuration: +source_configuration: source_field: field_media_test test_config_value: 'This is default value.' field_map: { } diff -u b/core/modules/media_library/tests/modules/media_library_test/config/install/media.type.type_two.yml b/core/modules/media_library/tests/modules/media_library_test/config/install/media.type.type_two.yml --- b/core/modules/media_library/tests/modules/media_library_test/config/install/media.type.type_two.yml +++ b/core/modules/media_library/tests/modules/media_library_test/config/install/media.type.type_two.yml @@ -3,14 +3,14 @@ dependencies: module: - media - - media_test_handler + - media_test_source id: type_two label: 'Type Two' description: '' -handler: test +source: test queue_thumbnail_downloads: false new_revision: false -handler_configuration: +source_configuration: source_field: field_media_test_1 test_config_value: 'This is default value.' field_map: { } diff -u b/core/modules/media_library/tests/modules/media_library_test/media_library_test.info.yml b/core/modules/media_library/tests/modules/media_library_test/media_library_test.info.yml --- b/core/modules/media_library/tests/modules/media_library_test/media_library_test.info.yml +++ b/core/modules/media_library/tests/modules/media_library_test/media_library_test.info.yml @@ -5,7 +5,7 @@ core: 8.x dependencies: - drupal:media_library - - drupal:media_test_handler + - drupal:media_test_source - drupal:menu_ui - drupal:node - drupal:path diff -u b/core/modules/media_library/tests/src/FunctionalJavascript/MediaLibraryTest.php b/core/modules/media_library/tests/src/FunctionalJavascript/MediaLibraryTest.php --- b/core/modules/media_library/tests/src/FunctionalJavascript/MediaLibraryTest.php +++ b/core/modules/media_library/tests/src/FunctionalJavascript/MediaLibraryTest.php @@ -75,6 +75,12 @@ $this->clickLink('Type Two'); $this->assertSession()->pageTextNotContains('media_2'); $this->assertSession()->pageTextContains('media_4'); + + // Test that selecting elements as a part of bulk operations works. + $this->clickLink('All categories'); + $this->getSession()->executeScript('jQuery(".media-library-item").click()'); + $this->submitForm([], 'Apply to selected items', 'views-form-media-library-page'); + $this->assertSession()->pageTextContains('media_1'); } } only in patch2: unchanged: --- /dev/null +++ b/core/modules/media_library/media_library.install @@ -0,0 +1,21 @@ +getDisplay('media_page_list'); + $display['display_options']['enabled'] = FALSE; + $view->save(); +}