if (is_object($activityDAO)) {
$activityDAO->free();
}
- return civicrm_api3_create_error(ts("Unable to revision existing case activity."), NULL, $activityDAO);
+ return civicrm_api3_create_error(ts("Unable to revision existing case activity."));
}
$createRevision = TRUE;
}
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