Custom field values not showing in Drupal 7 Views filter
Overview
When a custom field is created with a specified column_name
, the field does not work correctly when used as a Drupal 7 Views filter.
Custom fields created via the UI, or by API when the column_name
is not specified all work as expected.
Reproduction steps
- Create a Custom Field via API extending Contact, type Select (drop-down) and set the
column_name
. Create a few option values. - Set up system for Views (copy from
Administration > System Settings > CMS Integration
etc) - Create a View based on Contacts, add a Filter and select the custom field
- Note an AJAX error including
Unsupported operand types in views_handler_filter_in_operator->value_form()
For the same problem but using a different handler, repeat with Checkbox type.
Current behaviour
Error shown and no filter values shown.
Expected behaviour
No error, filter values shown
Environment information
- CiviCRM: Master