From 8b6a4fe4f4fe7faf943df8b09dd70f609ffc2eff Mon Sep 17 00:00:00 2001 From: Pradeep Nayak Date: Wed, 29 May 2013 14:52:01 +0530 Subject: [PATCH] -- fixed db reference checks for financial_type_id, CRM-12470 ---------------------------------------- * CRM-12470: Creating new financial type without AR account leads to unbalanced transactions http://issues.civicrm.org/jira/browse/CRM-12470 --- CRM/Financial/BAO/FinancialType.php | 32 +++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/CRM/Financial/BAO/FinancialType.php b/CRM/Financial/BAO/FinancialType.php index ebdb005c79..f539ad1218 100644 --- a/CRM/Financial/BAO/FinancialType.php +++ b/CRM/Financial/BAO/FinancialType.php @@ -148,6 +148,38 @@ class CRM_Financial_BAO_FinancialType extends CRM_Financial_DAO_FinancialType { 'table' => 'civicrm_pledge', 'column' => 'financial_type_id', ), + array( + 'table' => 'civicrm_grant', + 'column' => 'financial_type_id', + ), + array( + 'table' => 'civicrm_product', + 'column' => 'financial_type_id', + ), + array( + 'table' => 'civicrm_event', + 'column' => 'financial_type_id', + ), + array( + 'table' => 'civicrm_premiums_product', + 'column' => 'financial_type_id', + ), + array( + 'table' => 'civicrm_price_set', + 'column' => 'financial_type_id', + ), + array( + 'table' => 'civicrm_price_field_value', + 'column' => 'financial_type_id', + ), + array( + 'table' => 'civicrm_line_item', + 'column' => 'financial_type_id', + ), + array( + 'table' => 'civicrm_contribution_product ', + 'column' => 'financial_type_id', + ), ); $errors = array(); -- 2.25.1