Merge pull request #2564 from jaapjansma/CRM-14276
[civicrm-core.git] / api / v3 / Batch.php
index 8e01355884c9b851a203d8960d74d6c4cc404cb2..1d6a4f95bc4114ca6d3cd6ae6d6d9a9869838256 100644 (file)
@@ -2,9 +2,9 @@
 
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.4                                                |
+ | CiviCRM version 4.5                                                |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013                                |
+ | Copyright CiviCRM LLC (c) 2004-2014                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
@@ -55,7 +55,11 @@ function civicrm_api3_batch_create($params) {
  * @param array $params array or parameters determined by getfields
  */
 function _civicrm_api3_batch_create_spec(&$params) {
+  //@todo - the entity table field looks like it is not actually required & should probably be removed (or a description added if
+  // it is actually required)
   $params['entity_table']['api.default'] = "civicrm_batch";
+  $params['entity_table']['type'] = CRM_Utils_Type::T_STRING;
+
   $params['modified_date']['api.default'] = "now";
   $params['status_id']['api.required'] = 1;
   $params['title']['api.required'] = 1;