Download & Extend

'prepare-GET-submit' event not triggered for exposed filters in views_filterblock

Project:Hierarchical Select
Version:5.x-3.x-dev
Component:Code - Taxonomy Views
Category:bug report
Priority:minor
Assigned:Wim Leers
Status:closed (fixed)

Issue Summary

I'm not sure if this is an issue with HS or VFB, but when I enable views filter block for my view, and submit a filter, I get a no content found response, without HS everything works, with out VFB everything works.

This is the url I get when I submit a filter with views multiblock...
http://test.jony.net/trees/all?filter0[hierarchical_select][selects][0]=20&filter0[hierarchical_select][selects][1]=label_1&hs_form_build_id=hs_form_633b1597c776b785a4f2d00f4c895b26&formsingle_token=4290dbf3b01b4fdd1650848154edc5e7&form_id=views_filterblock

this is what I get with the same filter settings, with out views filter block enabled
http://test.jony.net/trees/all?filter0[]=20&formsingle_token=a44bdf080f8c110c75767dadb64bd8e6

Comments

#1

Status:active» postponed (maintainer needs more info)

The GET url is bad. Can you check if views.js is being included on that page please?

#2

<script type="text/javascript" src="/sites/all/modules/hierarchical_select/includes/views.js"></script>
I think thats what your talking about, you can test out the page at http://test.jony.net/trees/all

#3

Title:trouble with views filter block» 'prepare-GET-submit' event not triggered for exposed filters in views_filterblock
Priority:normal» minor
Assigned to:Anonymous» Wim Leers
Status:postponed (maintainer needs more info)» needs review

That's what I need. A live demo. It leads to a quick solution.

Patch that should fix this is attached.

AttachmentSize
287408.patch 695 bytes

#4

I accidentally committed this patch together with another one: http://drupal.org/cvs?commit=129882. If it works fine, then you can set the issue to fixed.

#5

just tested the new code, still doesnt work, if I search for pine, it should find many nodes, finds none, still long url, contact me if you need any more info or access or anything that will help.

#6

I had a stupid typo. Please try the attached patch.

AttachmentSize
287408.patch 602 bytes

#7

still doesnt seem to be working, i set you up an account and sent you the details via the contact form if you think that will help, let me know if you need anything, of if I can be of any help or whatnot.

#8

Status:needs review» fixed

I missed a couple of spots. Committed a fully working version.

#9

Status:fixed» active

one more things, filters now work, but if you add more than one selection in the drop box, only the first selection is reflected in the filtering

#10

not sure how I missed this, each nodes that shows up in the filter results is displayed twice.

#11

Status:active» closed (fixed)

That's a separate issue. Probably due to misconfiguration on your side. So please open a separate issue for it.