Fix more entities to support custom fields (via api)
[civicrm-core.git] / api / v3 / EntityBatch.php
index ae031defea43239a07574a181d7df46125eccbaf..7dae97a0e3710bcc27b6dcc7f13dd010ce16f34c 100644 (file)
@@ -3,7 +3,7 @@
  --------------------------------------------------------------------
  | CiviCRM version 4.7                                                |
  --------------------------------------------------------------------
- | Copyright CiviCRM LLC (c) 2004-2016                                |
+ | Copyright CiviCRM LLC (c) 2004-2017                                |
  --------------------------------------------------------------------
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
@@ -66,7 +66,7 @@ function _civicrm_api3_entity_batch_create_spec(&$params) {
  * @return array
  */
 function civicrm_api3_entity_batch_create($params) {
-  return _civicrm_api3_basic_create(_civicrm_api3_get_BAO(__FUNCTION__), $params);
+  return _civicrm_api3_basic_create(_civicrm_api3_get_BAO(__FUNCTION__), $params, 'EntityBatch');
 }
 
 /**