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

joncup - July 26, 2008 - 04:18
Project:Hierarchical Select
Version:5.x-3.x-dev
Component:Code - Taxonomy Views
Category:bug report
Priority:minor
Assigned:Wim Leers
Status:closed
Description

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

#1

Wim Leers - July 26, 2008 - 08:50
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

joncup - July 26, 2008 - 09:11

<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

Wim Leers - July 26, 2008 - 10:03
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

Wim Leers - July 26, 2008 - 10:43

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

joncup - July 26, 2008 - 18:56

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

Wim Leers - July 28, 2008 - 22:00

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

AttachmentSize
287408.patch 602 bytes

#7

joncup - July 28, 2008 - 22:55

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

Wim Leers - July 29, 2008 - 22:45
Status:needs review» fixed

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

#9

joncup - July 30, 2008 - 01:32
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

joncup - July 30, 2008 - 20:07

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

#11

Wim Leers - August 3, 2008 - 10:19
Status:active» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.