Closed (fixed)
Project:
Views Block Exposed Filter Blocks
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Dec 2013 at 21:14 UTC
Updated:
23 May 2017 at 09:39 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
drclaw commentedAttached patch removes ths ajax dependency.
Comment #2
drclaw commentedNeeds review :)
Comment #3
drclaw commentedLast patch actually exposes the form on all blocks. Oops! Here's one that only exposes it for blocks with AJAX on, or if the exposed form is exposed as a block.
Comment #4
iamEAP commentedThanks for the patch @drclaw! Tested this on simplytest.me and works as promised. I'll do a code review soon...
Comment #5
drclaw commentedHi, thanks for testing it out! While we're on the subject, here's an updated one with a slightly less error prone check for the exposed form setting (I noticed a bunch of "undefined index" errors in my logs recently).
Thanks!
Comment #6
paulihuhtiniemi commentedMaybe I'm missing something, but shouldn't it be only for Views that have filters exposed as blocks?
Comment #7
bart vanhoutte commentedTested #6, looks good.
Comment #8
drclaw commented@paulihuhtiniem I think we need to keep the
use_ajax()check in there. This module actually replaces the the original views block plugin so we need to keep the original functionality intact in addition to our exposed as block check. If not, the filters won't appear on view blocks that have exposed filters that aren't exposed as a block.And now that I think about it, I think we should probably call the
views_plugin_displayclass'suses_exposed()method instead of just returningTRUEsince not all blocks with AJAX turned on will have exposed filters (in the case of only having a pager for example). Patch attached!Comment #9
drclaw commentedComment #10
bart vanhoutte commented#8 is right, tested and works.
Comment #12
iamEAP commentedThanks everyone! Tried it out myself on simplytest.me and it works as expected.
Moving to 8.x so that it gets applied.
Comment #13
yogeshmpawarHere's the patch for 8.x-1.x branch.
Comment #15
yogeshmpawarCommitted & pushed to 8.x-1.x branch also assigning credits.
Comment #16
arosboro commentedThe patch in #13, applied with 06b08442edc4, had me scratching my head. It doesn't include a ! (NOT) operator, so all views without AJAX enabled break.
Comment #17
yogeshmpawar@arosboro - Marking this issue as Fixed because this issue is solved Empty exposed forms appeared issue.