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

Views other than contact don't join all tables

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Cannot Reproduce
    • Affects Version/s: 3.4.5
    • Fix Version/s: 4.1.0
    • Labels:
      None

      Description

      When creating a view other than a civicrm_contact view, but one that joins to contacts (like one for event participants, contributions, etc.), not all contact information carries over. For example, there's a "Group(s)" field that tries to select the non-existent field civicrm_contact.groups, and custom fields are attempted to be selected as civicrm_contact.custom_X.

      I've attached a patch to civicrm.views.inc that covers views and tags, doing the joins just like for civicrm_contact. However, I'm not entirely sure how to take care of the custom fields, especially to hide them from showing up as if they're in the civicrm_contact table.

        Attachments

        1. civicrm.views.diff
          12 kB
          Andrew Hunt
        2. CRM-8857.tags.fix.patch
          4 kB
          Jim Taylor

          Activity

            People

            • Assignee:
              jalama Jim Taylor
              Reporter:
              andrewhunt Andrew Hunt
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: