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

Incorrect emails are retrieved by CRM_Contact_BAO_Query::apiQuery()

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 1.3
    • Fix Version/s: 1.3
    • Component/s: None
    • Labels:
      None

      Description

      If a contact has 3 emails for a location type, then

      $params = array( 'id' => 101 );
      $returnProperties = array( 'location' => array( '1' => array ( 'email-1' => 1, 'email-2' => 1),
      $query = CRM_Contact_BAO_Query::apiQuery( $params, $returnProperties );

      Then it returns 3 emails with last 2 same emails.

      even if i add " 'email-3' => 1 ", result is same.

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              kurund Kurund Jalmi
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: