Closed (fixed)
Project:
Date Facets
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Nov 2013 at 22:23 UTC
Updated:
21 Jan 2014 at 04:37 UTC
Jump to comment: Most recent
The labels for custom date ranges aren't displayed in the facet block. Attached patch fixes this.
To get the custom labels, one needs to load the active searcher from facetapi - facetapi API says that this can return multiple searchers, as I don't know how to distinguish them properly and as I never had a situation occur where facetapi actually returns more than one active searcher, I am just using the first one returned. Maybe this is incorrect in some situations, but for me it works perfectly for now.
| Comment | File | Size | Author |
|---|---|---|---|
| date_facets-labels.patch | 1.08 KB | Frando |
Comments
Comment #1
g089h515r806 commentedworks correct for me.
Comment #2
Sneakyvv commentedworks for me, but I have refactored your code patching two other issues (https://drupal.org/node/2131831)
Comment #3
eugene.ilyin commentedHello. Sorry for delay.
@Frando, thanks for your work. Commited with some changes 894f6f7
Comment #4
eugene.ilyin commentedComment #5
eugene.ilyin commented