Closed (fixed)
Project:
Search API
Version:
7.x-1.x-dev
Component:
Facets
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Oct 2013 at 15:17 UTC
Updated:
6 Nov 2013 at 10:50 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
moonray commentedAttached patch fixes this.
Comment #3
drunken monkeyPlease create patches always relative to the module directory, so they can be tested automatically (and also applied by others more easily).
Regarding your reported problem, I cannot reproduce it. If I ouput
$variablesintheme_facetapi_link_active(), it shows the correct count both with and without your patch. Are you sure this isn't caused by some other module, or custom code? Can you reproduce the problem from a clean install? With what steps?Comment #4
moonray commentedThe backend was search_api_db
My date facet was set to granularity: year
I was planning to redo the patch, but haven't gotten around to it. Apologies.
I'm going to try this on a clean install, but I'm quite positive that there is no other module interfering with the count.
Comment #5
drunken monkeyAh, the backend seems to be irrelevant but the granularity is the key factor! Good, that you mention it. It seems the bug only occurs if the active item is also of the smallest available granularity.
I don't pretend to understand what's going on in the code and in Facet API there, but your patch seems to fix it without introducing any other problems, as far as I can see. So, thank you very much for that!
Attached is a re-roll with the correct root, and with the comment moved a bit. If no-one else complains in the next days, I'll commit it.
Comment #6
drunken monkeyCommitted.
Thanks again!