Merge pull request #11929 from civicrm/5.0
[civicrm-core.git] / api / v3 / FinancialTrxn.php
index 12058a157f5d14e0d81e1d6c9d2d45b0cc6c5ccf..23f19807cc152625a9327b684527cc84c827fe7e 100644 (file)
@@ -43,7 +43,7 @@ function civicrm_api3_financial_trxn_create($params) {
     throw new API_Exception("Mandatory key(s) missing from params array: both contribution_id and entity_id are missing");
   }
 
-  return _civicrm_api3_basic_create('CRM_Core_BAO_FinancialTrxn', $params);
+  return _civicrm_api3_basic_create('CRM_Core_BAO_FinancialTrxn', $params, 'FinancialTrxn');
 }
 
 /**