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.