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

stop adding custom fields twice in views

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 3.2.5, 3.3.6, 3.4.alpha, 3.4.beta, 3.4.0, 3.4.1, 3.4.2, 3.4.3, 3.4.4, 4.0.0, 4.0.1, 4.0.2, 4.0.3, 4.0.4
    • Fix Version/s: 4.1.0
    • Labels:
      None

      Description

      Currently Views lists custom field attached to Contacts 2 ways hence they are listed in the "CiviCRM Contacts" group and in individual groups for each groups of Custom fields. The later is preferred as it ensures the field in question passes through the civicrm_views_custom_data_cache() function which does a bunch of work to ensure the correct handler is used.

      The former group (CiviCRM Contact) passes custom fields through the less than ideal civicrm_views_add_fields() function which causes issues because the civicrm_views_add_fields() function assigns generic handlers to the fields which is a major issue for and type of multi-select field types such as 'Multi-Select', 'AdvMulti-Select', 'CheckBox', 'Multi-Select Country' and 'Multi-Select State/Province'

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: