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

CiviCRM CCK Contact Reference module is hardcoded to only search for 'Individual' contacts - patched to give more options

    Details

    • Type: Improvement
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 3.1.5
    • Fix Version/s: 3.1.6
    • Labels:
      None

      Description

      as mentioned here:

      http://forum.civicrm.org/index.php?topic=8468.0#msg37082

      ...and elsewhere, the CiviCRM CCK Contact Reference drupal module (CiviCRM 3.1.5) contains some SQL which searches for CiviCRM contacts which includes this in the where clause:

      WHERE contact_type LIKE 'Individual'

      ...a patch is attached which replaces this with a configurable option on each CCK field created with this module to specify which contact_types should be included when searching.

      e.g. CiviCRM contact_type:
      [] Individual
      [] Household
      [] Organisation

      This has had some basic testing using the different widget types provided by the module.

        Attachments

          Activity

            People

            • Assignee:
              rajan Rajan P Mayekar
              Reporter:
              mcdruid Drew Webber
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: