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

crm_get_contact() fails to find organization if email specified

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 1.7
    • Fix Version/s: 1.8
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      Using CiviCRM version 1.7.9379:

      crm_get_contact( $params ) doesn't find a contact, but crm_create_contact(
      $params ) does, using $params such as this:

      $params = array(3)

      { ["contact_type"]=> string(12) "Organization" ["organization_name"]=> string(20) "Dark City Coffee Co." ["email"]=> string(26) "raymond@darkcitycoffee.com" }

      Removing the 'email' element lets it work as expected.

        Attachments

          Activity

            People

            • Assignee:
              rupam Rupam Jaiswal
              Reporter:
              stevem Steve McCullough
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: