From 1ada3df4d2d5f2a56271cd3a9d20e5e604e380cf Mon Sep 17 00:00:00 2001 From: Dave Greenberg Date: Fri, 20 Feb 2015 18:04:49 -0800 Subject: [PATCH] CRM-15958 - Fix problem where financial_trxn.trxn_id is not being saved on contribution update. ---------------------------------------- * CRM-15958: Updating a contribution to completed with a new trxn_id writes unjoinable finanical_trxn record https://issues.civicrm.org/jira/browse/CRM-15958 --- CRM/Contribute/BAO/Contribution.php | 1 + 1 file changed, 1 insertion(+) diff --git a/CRM/Contribute/BAO/Contribution.php b/CRM/Contribute/BAO/Contribution.php index fcbdacecb8..36b2a26b9e 100644 --- a/CRM/Contribute/BAO/Contribution.php +++ b/CRM/Contribute/BAO/Contribution.php @@ -2843,6 +2843,7 @@ WHERE contribution_id = %1 "; //Update contribution status $params['trxnParams']['status_id'] = $params['contribution']->contribution_status_id; + $params['trxnParams']['trxn_id'] = $params['contribution']->trxn_id; if (!empty($params['contribution_status_id']) && $params['prevContribution']->contribution_status_id != $params['contribution']->contribution_status_id ) { -- 2.25.1