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

recent search behaviour changes have broken api get behaviour WRT Orgs vs Individuals

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.3.0
    • Fix Version/s: 4.3.0
    • Component/s: None
    • Labels:
      None

      Description

      As per api_v3_ContactTest::testContactCreateCurrentEmployer

      It used to be that

      civicrm_api('contact', 'get', array(
      'version' => 3,
      'organization_name' => 'new employer org',
      'contact_type' => 'Organization'
      ));

      Would only return Organizations - it now returns Individuals as well. I assume that even without contact_type set it used to return only organizations as it is an org field

        Attachments

          Activity

            People

            • Assignee:
              eileen Eileen McNaughton
              Reporter:
              eileen Eileen McNaughton
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: