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

"IN" operator doesn't work on the contact_sub_type field for api.Contact.get

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.6.9
    • Fix Version/s: 4.7
    • Component/s: CiviCRM API
    • Labels:
      None
    • Documentation Required?:
      Developer Doc
    • Funding Source:
      Core Team Funds

      Description

      civicrm_api3('Contact', 'get', array(
        'sequential' => 1,
        'contact_sub_type' => array('IN' => array("Parent")),
      ));
      

      ... always returns zero contacts. As a result, it is impossible for search for contacts who have a contact subtype of either Parents or Teachers.

        Attachments

          Activity

            People

            • Assignee:
              monish.deb Monish Deb
              Reporter:
              pittstains Frank J. Gómez
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: