Selecting a file in the media browser fails if the preview view mode of the files contain one or more links.
This is because the function template_preprocess_media_views_view_media_browser wraps a link around the file preview.
So if the file preview contains links, a link will be wrapped around them which leads to wrong HTML-code and the JavaScript code which searches for data-fid will fail to find it...

As far as I understand the code, there's no reason for the wrapper which contains the data-fid being an link.

Comments

jover’s picture

Version: 7.x-2.0-unstable7 » 7.x-2.x-dev
Status: Needs work » Closed (won't fix)

The bug is present in branch 7-x-2.x-unstable7, but it seems to be not longer relevant in branch 7.x-2.x ...