Closed (fixed)
Project:
Facet API Search
Version:
7.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
8 Jan 2016 at 16:37 UTC
Updated:
12 Sep 2016 at 09:08 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
fox_01 commentedComment #3
fox_01 commentedComment #4
semanthis commentedthis problem seems to appears if you use related fields as facets. Then $form['#facetapi']['facet']['name'] contains a colon (':'). JQuery denotes the colon as a pseudo-class, but in Your case there is no pseudo-class "length", because such pseudo-class doesn't exists. Actually in the id used by Facetapi - and which should be addressed by the script, the colon is not escaped but removed.
Very short solution is to change line 44 in facetapi_search.module by
'id' => 'facet-' . (str_replace(':', '', str_replace('_', '-', $facet['name']))),
this way the colon is removed and everything should work.
I'm working on a heavyly modified version of the module without versioning - I first would need to checkout a original version - so it would be great if You could create a patch. Thanks
Comment #5
bmeme commentedUsually it would be better if you create a patch starting from 7.x-1.x branch and upload it to this issue. In this way we can test your fixes/improvements and, if all will be ok, then release a new version of this module based on your contribution. Obviously we will assign you credits :)
Comment #6
nwom commentedI was having the same issue. Here is a patch, thanks to semanthis work
Comment #7
nwom commentedSame patch, but this time without the whitespace issue
Comment #8
nwom commentedComment #9
nwom commentedComment #10
bmeme commentedComment #12
aronne commentedFixed in 7.x-1.1
Thx NWOM.