Closed (fixed)
Project:
Search API ranges
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Nov 2011 at 22:33 UTC
Updated:
26 Jan 2012 at 12:32 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
Anonymous (not verified) commentedCan you explain how to reproduce this? In principle "%3A" is the urlencode() replacement for ":" anyway, so it shouldn't matter.
Or maybe we should use urldecode:
What do you think?
Comment #2
MrGeneric commentedSorry, I should have explained properly. The %3A gets encoded to %253A which is the same as the separator produced by the widget links facet for fields obtained through a relation. Whether or not this was the intentional separator or likely to change, I am not sure.
Example query strings
before change:
?f[0]=field_average_price%3Aaverage_price_supplier%3A[0 TO 900]after:
?f[0]=field_average_price%253Aaverage_price_supplier%3A%5B0%20TO%20900%5DHere, field_average_price was added as a relation.
Steps to reproduce:
Thanks for all your work on this module.
Edit:
I should point out that $variables['range_field'] has the form,
field_average_price:average_price_supplier, in the above example.Comment #3
mrfelton commentedI have this issue to - it's the reason why the slider widget wasn't working for me in [#1350528 even after my patch - and it's also stopping things working in my widget for #1302678: Min/Max for Ranges only updated for first Range Facet. To fix this in my widget, I'm now using the following:
EDIT: Note the use of urlencode on the fieldname.
Comment #4
Anonymous (not verified) commentedOk, so we should use "rawurldecode()" on the range_field. rawurlencode() as per http://drupal.org/node/1352082#comment-5336828
Will have a patch soon.
Comment #5
emorency commentedThis is a patch for that issue. Please review.
Comment #6
emorency commentedActually, this is the patch for 7.x-1.x version.
Comment #7
Anonymous (not verified) commentedCommitted to devx.