Problem/Motivation
If you create a 'media browser tab' display for a view of media items, and exposed some of the filters, then the form submit url is wrong - it's set to the url for the default display on the view, not '/media/browser'. This makes any form with exposed filters unusable, as it ends up showing the wrong page in the iframe, including the site theme header etc., once you press the 'Apply' button on the filter form.
Proposed resolution
I have managed to solve this by patching a couple of files. It's not the cleanest solution probably, but it does work OK.
I'm in the process of generating the patch now.
Remaining tasks
(done) write patch
(done) review patch
User interface changes
None
API changes
None
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | media-exposed-filter-fix-1975836-2.patch | 876 bytes | highfellow |
| #1 | media-exposed_filter_fix-1975836-1.patch | 1.23 KB | highfellow |
Comments
Comment #1
highfellow commentedI've attached a patch file to this comment. (Created using git diff as explained at http://drupal.org/node/707484).
Comment #2
highfellow commentedThere was a fault in the way I prepared the above patch. This one should work (execpt that you have to re-select the correct tab after applying the filters).
Comment #3
devin carlson commentedComment #5
socialnicheguru commented#2 worked for me. thanks.
Comment #6
Yuri commented#2 worked.
Any idea what could be a workaround to not having to reselect the tab?
Comment #7
svenryen commentedI can also confirm #2 works for me.
Comment #8
aaron commentedCommitted to http://drupalcode.org/project/media.git/commit/a86d0da.
Comment #11
prashant.kabade commentedThis patch worked successfully . It should be added to next update please. Thanks