Skip to content
Snippets Groups Projects
Commit c84d6823 authored by Eileen McNaughton's avatar Eileen McNaughton
Browse files

CRM-14419 - e-notice on activity.getcount when contact_id is not passed in

parent 73af645c
Branches
Tags
No related merge requests found
......@@ -232,6 +232,10 @@ function civicrm_api3_activity_get($params) {
else {
$activities = _civicrm_api3_basic_get(_civicrm_api3_get_BAO(__FUNCTION__), $params, FALSE);
}
$options = _civicrm_api3_get_options_from_params($params, FALSE,'activity','get');
if($options['is_count']) {
return civicrm_api3_create_success($activities, $params, 'activity', 'get');
}
$activities = _civicrm_api3_activity_get_formatResult($params, $activities);
//legacy custom data get - so previous formatted response is still returned too
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment