Closed (fixed)
Project:
Conditional Fields
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 Sep 2009 at 18:15 UTC
Updated:
3 Mar 2010 at 20:30 UTC
When using conditional fields with faceted search the following error often occurs:
warning: Invalid argument supplied for foreach() in /var/www/privatedev/cisdev/sites/all/modules/conditional_fields/conditional_fields.module on line 223.
This can be fixed like so: (starting on line 223)
$control_field_name = $field['control_field_name'];
foreach ($node->$control_field_name as $value) {
$current_values[$field['control_field_name']] = $value['value'];
if (!empty($value['value']) && $node->content[$field['control_field_name']]['field']['#access'] == TRUE) {
$viewed = TRUE;
}
}
Comments
Comment #1
peterpoe commentedWith faceted search 6.x-1.x-dev (2009-Oct-14) I can't reproduce this issue. Do you confirm that it is still happening? When does it happen? In the search results page?
Comment #2
peterpoe commentedComment #3
phayes commentedIt does not seem to be happening with the latest version. Thanks!