From: Seamus Lee Date: Fri, 16 Sep 2016 10:55:26 +0000 (+0000) Subject: Fix printing and sending contribution recepits X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=a9485fab005d5ffda4496a57d4d06de27daf6dff;p=civicrm-core.git Fix printing and sending contribution recepits --- diff --git a/CRM/Contribute/Form/Task/PDF.php b/CRM/Contribute/Form/Task/PDF.php index fe9f9aa1d9..5f342c1db4 100644 --- a/CRM/Contribute/Form/Task/PDF.php +++ b/CRM/Contribute/Form/Task/PDF.php @@ -207,8 +207,7 @@ AND {$this->_componentClause}"; $input['receipt_from_name'] = str_replace('"', '', $fromDetails[0]); } - $mail = CRM_Contribute_BAO_Contribution::sendMail($input, $ids, $objects['contribution']->id, $values, FALSE, - $elements['createPdf']); + $mail = $elements['baseIPN']->sendMail($input, $ids, $objects, $values, FALSE, $elements['createPdf']); if ($mail['html']) { $message[] = $mail['html'];