Merge pull request #3679 from yashodha/CRM-14951
[civicrm-core.git] / api / v3 / ContributionSoft.php
index 978f9eccff5553bda2061ab69224d387822107ed..1155a7e1f1fe9a14d36faaabe1224958956bbcc4 100644 (file)
@@ -3,9 +3,9 @@
 
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.3                                                |
+ | CiviCRM version 4.5                                                |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013                                |
+ | Copyright CiviCRM LLC (c) 2004-2014                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
@@ -33,7 +33,7 @@
  * @package CiviCRM_APIv3
  * @subpackage API_ContributionSoft
  *
- * @copyright CiviCRM LLC (c) 2004-2013
+ * @copyright CiviCRM LLC (c) 2004-2014
  * @version $Id: ContributionSoft.php 2013-05-01 Jon Goldberg $
  */
 
@@ -77,7 +77,9 @@ function _civicrm_api3_contribution_soft_create_spec(&$params) {
  * @access public
  */
 function civicrm_api3_contribution_soft_delete($params) {
-  return _civicrm_api3_basic_delete(_civicrm_api3_get_BAO(__FUNCTION__), $params);
+  // non standard BAO - we have to write custom code to cope
+  CRM_Contribute_BAO_ContributionSoft::del(array('id' => $params['id']));
+
 }
 
 /**