Closed (fixed)
Project:
Date Facets
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Jun 2013 at 02:37 UTC
Updated:
19 Aug 2014 at 18:00 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
criznach commentedPatch attached. Implemented key-value mapping in _date_facets_api_facet_create_label and fixed mapping callback.
Comment #2
eugene.ilyin commentedHello.
Sorry for delay - summer :)
I tryed to reproduce your problem, but seems now all works fine.
Without filtering:
filter - http://i.imgur.com/Fb4RlqR.png
values of facet - http://i.imgur.com/4FT7cwd.png
With filtering:
filter - http://i.imgur.com/OWFVKe9.png
values of facet - http://i.imgur.com/y8d1aIJ.png
As you can see, values of filter displayed without underscores and #markup also stored value without underscores.
Maybe I do something wrong, please give me more info.
Comment #3
criznach commentedIt's happening in the current search block provided by facetapi, and in the breadcrumb, but not in the filters that are available to apply, which your screen shots seem to show.
I just tried it with both apachesolr + facetapi, and core search + search_facetapi, and they're both still showing underscores. I grabbed the latest dev release of facetapi and date_facets. Let me know if there's anything else you need to know about my config. I can send a database dump and drush makefile from my test install if that would help.
Comment #4
eugene.ilyin commentedYes, you right.
Committed.
Thank you for your help!
Comment #6
joseph.olstadrefactor patch#1 for todays dev build revision f2951cab4a993fd32c2c2fb0fb061abd889ae236
Comment #7
joseph.olstadSee comment #6
We were using this patch on beta-2 build which is over 8 months old and now due to warnings being thrown from the beta 2 build we decided to run the dev build commit f2951ca and patch it with
*EDIT*
projects[date_facets][patch][2016601] = http://drupal.org/files/issues/date_facets-date-facets-displayed-as-keys...
AND
projects[date_facets][patch][2280631] = http://drupal.org/files/issues/date_facets_beta2_dev_Missing_argument_2_...
Follow up tomorrow on this.
Comment #8
joseph.olstadComment #9
eugene.ilyin commented@joseph.olstad
Sorry, I'm confused. Which problems will appears in current version and how I can reproduce them?
Comment #10
eugene.ilyin commentedComment #11
eugene.ilyin commentedComment #13
eugene.ilyin commentedI updated search_api and search_api_solr and got this error.
But unfortunately, your patches are not helped. I found that reason of error in module search_api_facetapi in function search_api_facetapi_map_date(). I'm not sure that it's error of module search_api_facetapi.
I think that easiest way make little hack in module date_facets to avoid this problem.
So, it's solved. Thanks to all who helped me.