Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Minor
-
Resolution: Fixed/Completed
-
Affects Version/s: 3.0.2
-
Fix Version/s: 3.2
-
Component/s: CiviCRM API
-
Labels:None
Description
civicrm_activities_get_contact() returns "Invalid Data" error when no activities exist for contact.
The function hasn't failed, so it should not return an error. It should return an empty array of activities.
$activity = array('contact_id' => $objectId);
$ret = civicrm_activities_get_contact($activity);