From 4d0cca48d4d607579ccd9c0e0331992cc2a2d7c1 Mon Sep 17 00:00:00 2001 From: monishdeb Date: Fri, 23 Oct 2015 16:12:54 +0530 Subject: [PATCH] CRM-17343 fix - Invoice email does not send out when completing payment using Paypal https://issues.civicrm.org/jira/browse/CRM-17343 --- CRM/Contribute/Form/Task/Invoice.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Contribute/Form/Task/Invoice.php b/CRM/Contribute/Form/Task/Invoice.php index 24621d5695..cf0244bf19 100644 --- a/CRM/Contribute/Form/Task/Invoice.php +++ b/CRM/Contribute/Form/Task/Invoice.php @@ -482,7 +482,7 @@ class CRM_Contribute_Form_Task_Invoice extends CRM_Contribute_Form_Task { } // Fix Invoice email doesnot send out when completed payment using Paypal if (empty($contactID)) { - $contactID = $contactIds['0']; + $contactID = current($contactIds); } $contactEmails = CRM_Core_BAO_Email::allEmails($contactID); $emails = array(); -- 2.25.1