I don't know whether this is a Media, Media Gallery or Chaos Tools issue.
Description:
With Clean URLs activated the normal Media Upload window (screenshot) appears additional to a second Media Browser window. If I click on "Abbrechen" (cancel) in the Media Browser the standard Media Upload window becomes visible.
If I click the x in the top right corner, the overlay disappears without reloading the page. If "Abbrechen" (cancel) is selected, the page takes me to the Homepage (starting page).
This problem disappears with deactivated Clean URLs. I was able to reproduce this error with a clean version of Drupal 7.20.
Modules:
- Media - 7.x-2.0-unstable7+25-dev
- Media Gallery - 7.x-2.x-dev
- File Entity - 7.x-2.0-unstable7+39-dev
- Chaos tools - 7.x-1.2+44-dev
- Views - 7.x-3.5
- Colorbox - 7.x-2.3
- Libraries - 7.x-2.0
Comment | File | Size | Author |
---|---|---|---|
#3 | media_gallery-avoid_two_add_browsers-1931838-3.patch | 674 bytes | Moloc |
window_media-upload.jpg | 55.26 KB | sacre-1 | |
window_media-upload_double.jpg | 56.29 KB | sacre-1 |
Comments
Comment #1
Rasti CreditAttribution: Rasti commentedI have same exact issue..
Comment #2
Moloc CreditAttribution: Moloc commentedThis issue is fixed for 7.x-2.x, but not for 7.x-1.x
The solution, which was commited in ##1939186 added a javascript to avoid propagating the click event.
The real issue for this problem seems to be a change in the media module. See #1535940
The fix in this case was to add the path media/browser as an admin path.
When the overlay module is activated, it opens any admin path in an overlay by listening on the click event. To prevent loading it in the overlay, we can simply add a css-class "overlay-exclude".
Comment #3
Moloc CreditAttribution: Moloc commentedComment #5
Moloc CreditAttribution: Moloc commentedCommited to both branches.
Comment #7
Moloc CreditAttribution: Moloc commented