fix the references PriceFieldValue BAO
authoryashodha <yashodha.chaku@webaccess.co.in>
Thu, 29 Aug 2013 07:06:24 +0000 (12:36 +0530)
committeryashodha <yashodha.chaku@webaccess.co.in>
Thu, 29 Aug 2013 07:06:24 +0000 (12:36 +0530)
CRM/Contribute/BAO/ContributionPage.php
CRM/Event/BAO/Event.php

index 87ba1cb220cfb0754f42cfe2ee322bcbc36565f4..f707edbf26c1fb57c6ded5d70c39d29fcfe9df60 100644 (file)
@@ -57,7 +57,7 @@ class CRM_Contribute_BAO_ContributionPage extends CRM_Contribute_DAO_Contributio
     $dao->save();
     if ($financialTypeId && CRM_Utils_Array::value('financial_type_id', $params) 
       && $financialTypeId != $params['financial_type_id']) {
-      CRM_Price_BAO_FieldValue::updateFinancialType($params['id'], 'civicrm_contribution_page', $params['financial_type_id']);
+      CRM_Price_BAO_PriceFieldValue::updateFinancialType($params['id'], 'civicrm_contribution_page', $params['financial_type_id']);
     }
     return $dao;
   }
index 5e913c6a3329fac657d6f3c8708b5b8454b7e516..90c85c8382feddec9f1f71439b0035d51efcfd9f 100644 (file)
@@ -114,7 +114,7 @@ class CRM_Event_BAO_Event extends CRM_Event_DAO_Event {
     }
     if ($financialTypeId && CRM_Utils_Array::value('financial_type_id', $params) 
       && $financialTypeId != $params['financial_type_id']) {
-      CRM_Price_BAO_FieldValue::updateFinancialType($params['id'], 'civicrm_event', $params['financial_type_id']);
+      CRM_Price_BAO_PriceFieldValue::updateFinancialType($params['id'], 'civicrm_event', $params['financial_type_id']);
     }
     return $result;
   }