Needs review
Project:
Facet API Bonus
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
17 Nov 2014 at 16:19 UTC
Updated:
13 Feb 2017 at 20:49 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
drikc commentedThe attached patch make the reset link appear also when search keys are submitted.
Comment #2
drikc commentedFix compatiblity with php < 5.5.
Comment #3
PaulDinelle commentedI used this patch for a bit, but after customizing my search key and combining it with current_search_links module (to display reset buttons beside each facet), this module would no longer clear out keywords.
I've updated the patch to add in a custom settings field for the search keyword (mimicking the current_search_links module) so that the keywords could be properly removed. It meant I had to duplicate the CurrentSearchItem settings form, but I couldn't see a way around this.
Hope this helps someone else!
Comment #4
PaulDinelle commentedComment #5
PaulDinelle commentedHmm, my patch still doesn't work 100% with current_search_links module.
Comment #6
PaulDinelle commentedOkay, fixed an issue with the filter intersection list. If the first entry was empty (as is the case if removing the parent term in a hierarchy-enforced list), it was accidentally including the second filter in the reset link query.
Comment #7
mlanth commentedPatch re-roll to reflect newer module version.