From 19f6eba2abfcfa7702fa9056890f7e0b6612a54f Mon Sep 17 00:00:00 2001 From: Pradeep Nayak Date: Sat, 13 Feb 2016 19:11:34 +0530 Subject: [PATCH] --CRM-16259, added check for is pay later for pending contribution --- CRM/Contribute/BAO/Contribution.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Contribute/BAO/Contribution.php b/CRM/Contribute/BAO/Contribution.php index fab631fbae..292f648475 100644 --- a/CRM/Contribute/BAO/Contribution.php +++ b/CRM/Contribute/BAO/Contribution.php @@ -3358,7 +3358,7 @@ INNER JOIN civicrm_activity ON civicrm_activity_contact.activity_id = civicrm_ac } if ((($previousContributionStatus == 'Partially paid' && $params['contribution']->contribution_status_id == array_search('Completed', $contributionStatus)) - || ($previousContributionStatus == 'Pending' + || ($previousContributionStatus == 'Pending' && $params['prevContribution']->is_pay_later == TRUE && $params['contribution']->contribution_status_id == array_search('Partially paid', $contributionStatus))) && $context == 'changedStatus' ) { -- 2.25.1