CRM-16699 pass entity_type to basic get
authorEileen McNaughton <eileen@fuzion.co.nz>
Tue, 16 Jun 2015 08:11:37 +0000 (20:11 +1200)
committerEileen McNaughton <eileen@fuzion.co.nz>
Tue, 16 Jun 2015 08:11:37 +0000 (20:11 +1200)
api/v3/Activity.php

index bbdeca3471470824bd6e469f26885354751dd8ae..1e6fbf22f4a66a992c621ea542825c9336bec2c8 100644 (file)
@@ -241,7 +241,7 @@ function civicrm_api3_activity_get($params) {
     }
   }
   else {
-    $activities = _civicrm_api3_basic_get(_civicrm_api3_get_BAO(__FUNCTION__), $params, FALSE);
+    $activities = _civicrm_api3_basic_get(_civicrm_api3_get_BAO(__FUNCTION__), $params, FALSE, 'Activity');
   }
   $options = _civicrm_api3_get_options_from_params($params, FALSE, 'Activity', 'get');
   if ($options['is_count']) {