Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-10469

Drupal views: Call construct() in custom and pseudo_constant handlers

    Details

      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.

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              torrance123 Torrance
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: