Active
Project:
Faceted Search
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Nov 2009 at 13:53 UTC
Updated:
6 Nov 2009 at 13:53 UTC
When there's an underscore in the "name" for your faceted search environment, blocks will not get loaded. This is a result of the following code:
elseif ($op == 'view' && user_access('use faceted search')) {
// Determine the environment id and requested block.
list($env_name, $delta) = explode('_', $delta, 2);
$env = faceted_search_env_load($env_name);
If your environment name is "foo_bar" then $env_name will get set to just "foo", causing the faceted_search_env_load to fail, or, load the wrong environment (in this case it would try and load an environment called "foo").
Changing the "limit" in the explode call from 2 to 1 seems to fix the issue, but I'm not positive whether this causes problems in other naming schemes; I do not see why "2" is used as the limit in the first place.