Problem
I am facing the issue that the media library modal shows multiple Insert selected buttons when I'm using multiple media types (e.g. image and video) .

Proposed solution
A quick fix could be to blacklist the corresponding form_id, there is probably a nicer more generic way to prevent this issue.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

InaW created an issue. See original summary.

InaW’s picture

Applies against dev. Please review.

InaW’s picture

Status: Active » Needs review
InaW’s picture

Reuploading patch to blacklist media widgets for all media types: strpos($form_id, 'views_form_media_library_widget_') === FALSE

  • saschaeggi committed 183b0b0 on 8.x-3.x authored by InaW
    Issue #3158261 by InaW: Several insert buttons in the media upload...
saschaeggi’s picture

Status: Needs review » Fixed

Commited, thanks

saschaeggi’s picture

Status: Fixed » Closed (fixed)

Included in alpha23