Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When I create a media field to be able to upload images for a content, I would like to display only images, but all media type will be shown.
Comment | File | Size | Author |
---|---|---|---|
#1 | media-assets_not_filtering_by_type-1865666.patch | 750 bytes | k.dani |
Comments
Comment #1
k.dani CreditAttribution: k.dani commentedI found the source of the problem. The module compare array keys, when it want to get the local or/and remote wrappers being in used to add conditions to the query in media_browser_list() in media.browser.inc file. I found that the array we get from the url is keyed by a serial number, not with the value we want.
A path is attached to solve this.
Comment #2
Chris Matthews CreditAttribution: Chris Matthews as a volunteer commentedClosing this issue as outdated. However, if you think this issue is still important, please let us know and we will gladly re-open it for review.
sincerely,
- the Drupal Media Team