CRM-12463
authoryashodha <yashodha.chaku@webaccess.co.in>
Wed, 1 May 2013 17:19:47 +0000 (22:49 +0530)
committeryashodha <yashodha.chaku@webaccess.co.in>
Wed, 1 May 2013 17:19:47 +0000 (22:49 +0530)
CRM/Contribute/BAO/ContributionSoft.php

index 6fbae9f6a694adc81e03d795f5a74d073bccda36..29ff23aa6cbdaf06490045e4520341f845772076 100644 (file)
@@ -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();
   }
 }