Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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.
Comment | File | Size | Author |
---|---|---|---|
#4 | 3158261-remove-multiple-insert-buttons-in-add-media-modal-3.patch | 926 bytes | InaW |
| |||
#2 | 3158261-remove-multiple-insert-buttons-in-add-media-modal-2.patch | 931 bytes | InaW |
| |||
Mediaupload_dialog.png | 76.89 KB | InaW |
Comments
Comment #2
InaW CreditAttribution: InaW at Unic commentedApplies against dev. Please review.
Comment #3
InaW CreditAttribution: InaW at Unic commentedComment #4
InaW CreditAttribution: InaW at Unic commentedReuploading patch to blacklist media widgets for all media types:
strpos($form_id, 'views_form_media_library_widget_') === FALSE
Comment #6
saschaeggiCommited, thanks
Comment #7
saschaeggiIncluded in alpha23