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

Custom field groups which do not directly extend the base 'Contact' disappear from Drupal view after applying patch CRM-18776

    Details

    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      None
    • Funding Source:
      Contributed Code

      Description

      This patch from CRM-18776 appears to cause a regression. All field groups which do not directy extend the base 'Contact' diseappear from the view. Therefore any field attached to individuals, organizations and households will not appear in views.

      I changed the ('Contact' === $dao->extends) test in the patch with a comparison against the list of base contact types and that fixed my problem:

      $extendsContactSubtype = (in_array($dao->extends, array('Contact', 'Individual', 'Organization', 'Household')) && !empty($dao->extends_entity_column_value));

        Attachments

        1. set-1.png
          50 kB
          Stoob
        2. set-2.png
          94 kB
          Stoob

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              urlisse St├ęphane Lussier
            • Votes:
              2 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: