Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Minor
-
Resolution: Fixed/Completed
-
Affects Version/s: 3.4.alpha
-
Fix Version/s: 3.4.alpha
-
Component/s: CiviCRM API, Core CiviCRM
-
Labels:None
Description
civicrm_contact_get is unable to return more than 1 contact website. Doing a little debugging, the correct results are returned from the query, but in CRM/Contact/BAO/Query.php, at line ~3162, only one value is written to $values. Current line is:
$values[$dao->contact_id] = $query->store( $dao );
Changing that to:
$values[$dao->contact_id][] = $query->store( $dao );
allows the data to at least not be overwritten, but causes a lot of other problems. I'm new to Civi, so I'm not really sure what the next step would be, but unless that line is changed, I don't think the API will ever be able to return more than 1 contact website (if multiple sites, i.e. twitter, facebook, main) are added to a contact.