From c84d6823900ed15847c1a094de07498a24d92cea Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Thu, 3 Apr 2014 21:13:06 +1300 Subject: [PATCH] CRM-14419 - e-notice on activity.getcount when contact_id is not passed in --- api/v3/Activity.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api/v3/Activity.php b/api/v3/Activity.php index 171e20a539..6769575609 100644 --- a/api/v3/Activity.php +++ b/api/v3/Activity.php @@ -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 -- 2.25.1