From: yashodha Date: Wed, 1 May 2013 17:19:47 +0000 (+0530) Subject: CRM-12463 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=07a88eeca3006d16995b97310bb45be29cba5bad;p=civicrm-core.git CRM-12463 --- diff --git a/CRM/Contribute/BAO/ContributionSoft.php b/CRM/Contribute/BAO/ContributionSoft.php index 6fbae9f6a6..29ff23aa6c 100644 --- a/CRM/Contribute/BAO/ContributionSoft.php +++ b/CRM/Contribute/BAO/ContributionSoft.php @@ -50,7 +50,7 @@ class CRM_Contribute_BAO_ContributionSoft extends CRM_Contribute_DAO_Contributio * @access public * */ - public static function create(&$params) { + public static function add(&$params) { $contributionSoft = new CRM_Contribute_DAO_ContributionSoft(); $contributionSoft->copyValues($params); return $contributionSoft->save(); @@ -89,7 +89,7 @@ class CRM_Contribute_BAO_ContributionSoft extends CRM_Contribute_DAO_Contributio static function del($contributionID) { //delete from contribution soft table $contributionSoft = new CRM_Contribute_DAO_ContributionSoft(); - $contributionSoft->id = $contributionID; + $contributionSoft->contribution_id = $contributionID; $contributionSoft->delete(); } }