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

peterpoe’s picture

With 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?

peterpoe’s picture

Status: Active » Postponed (maintainer needs more info)
phayes’s picture

Status: Postponed (maintainer needs more info) » Fixed

It does not seem to be happening with the latest version. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.