From: Edsel Date: Mon, 19 Dec 2016 09:29:14 +0000 (+0530) Subject: CRM-16189 Fixed participant payment bug X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=545ca071b3496568fff9d500621fe667e6f28f6a;p=civicrm-core.git CRM-16189 Fixed participant payment bug ---------------------------------------- * CRM-16189: Improve support for Accrual Method bookkeeping https://issues.civicrm.org/jira/browse/CRM-16189 --- diff --git a/CRM/Contribute/BAO/Contribution.php b/CRM/Contribute/BAO/Contribution.php index f70b16578d..b388d2f500 100644 --- a/CRM/Contribute/BAO/Contribution.php +++ b/CRM/Contribute/BAO/Contribution.php @@ -3785,7 +3785,7 @@ INNER JOIN civicrm_activity ON civicrm_activity_contact.activity_id = civicrm_ac $defaults = array(); $contributionDAO = CRM_Contribute_BAO_Contribution::retrieve($getInfoOf, $defaults, CRM_Core_DAO::$_nullArray); if (!$participantId) { - $participantId = CRM_Core_DAO::getFieldValue('CRM_Event_DAO_ParticipantPayment', $contributionId, 'participant_id'); + $participantId = CRM_Core_DAO::getFieldValue('CRM_Event_DAO_ParticipantPayment', $contributionId, 'participant_id', 'contribution_id'); } if ($paymentType == 'owed') {