Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Minor
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.2.0
-
Fix Version/s: 4.2.0
-
Component/s: Drupal Integration Modules
Description
Yet more civicrm views handlers that aren't calling their parent construct() method. We had a view based on civicrm_contact and pulled in a custom field as well as a civicrm address field that was making use of civicrm_handler_field_pseudo_constant.inc. We were getting errors like this:
Notice: Undefined index: group_type in views_handler_field->query() (line 87 of sites/all/modules/views/handlers/views_handler_field.inc).
The $options['group_type'] value is created by the standard views field handler and simply calling parent::construct() ensures these expected instance variables are properly initialized.
Please see attached patch.