Closed (fixed)
Project:
Faceted Search
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Dec 2008 at 10:07 UTC
Updated:
31 Jan 2009 at 18:40 UTC
There is a bug in faceted_search_variable_get() which makes it always return the default value when the variable is boolean. This manifests itself in that the variable results_style_selective_extracts always appears to be TRUE, because this is the default value everywhere, even when it has been turned off in the admin settings and correctly stored as FALSE in the database.
Suggested fix: change the "return" line in faceted_search_variable_get() to read:
return isset($_faceted_search_variables[$env_id][$name]) ? $_faceted_search_variables[$env_id][$name] : $default ;
Comments
Comment #1
ajross commentedsubscribing
Comment #2
David Lesieur commentedThis should have been fixed at this point—there is now a cleaner structure for managing settings.