From a1eedce54d252aef361f2e630ec7877346e59b51 Mon Sep 17 00:00:00 2001 From: monishdeb Date: Wed, 29 Oct 2014 14:10:16 +0530 Subject: [PATCH] CRM-15481 additional fix ---------------------------------------- * CRM-15481: Scheduled Reminders job failure with event reminders https://issues.civicrm.org/jira/browse/CRM-15481 --- CRM/Contribute/BAO/Contribution.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/CRM/Contribute/BAO/Contribution.php b/CRM/Contribute/BAO/Contribution.php index 69d476e4d5..1fa15e87f6 100644 --- a/CRM/Contribute/BAO/Contribution.php +++ b/CRM/Contribute/BAO/Contribution.php @@ -3359,8 +3359,12 @@ WHERE eft.financial_trxn_id IN ({$trxnId}, {$baseTrxnId['financialTrxnId']}) if (!$contributionId) { if ($primaryParticipantId = CRM_Core_DAO::getFieldValue('CRM_Event_BAO_Participant', $id, 'registered_by_id')) { - $contributionId = CRM_Core_DAO::getFieldValue('CRM_Event_BAO_ParticipantPayment', $primaryParticipantId, 'contribution_id', 'participant_id'); - $id = $primaryParticipantId; + if ($contributionId = CRM_Core_DAO::getFieldValue('CRM_Event_BAO_ParticipantPayment', $primaryParticipantId, 'contribution_id', 'participant_id')) { + $id = $primaryParticipantId; + } + else { + return; + } } } } -- 2.25.1