From 423ae5b12a9ffdee59691dbb5aac92cfde3bed40 Mon Sep 17 00:00:00 2001 From: Pradeep Nayak Date: Sun, 15 Mar 2015 02:21:32 +0530 Subject: [PATCH] --CRM-16015, code to update civicrm_line_item.financial_type_id when civicrm_contribution.financial_type_id is updated --- CRM/Contribute/BAO/Contribution.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CRM/Contribute/BAO/Contribution.php b/CRM/Contribute/BAO/Contribution.php index 5d80490419..5376860bc8 100644 --- a/CRM/Contribute/BAO/Contribution.php +++ b/CRM/Contribute/BAO/Contribution.php @@ -3122,6 +3122,13 @@ WHERE contribution_id = %1 "; } } } + if ($context == 'changeFinancialType') { + foreach ($params['line_item'] as &$lineItems) { + foreach ($lineItems as &$line) { + $line['financial_type_id'] = $params['financial_type_id']; + } + } + } } /** -- 2.25.1