Fix printing and sending contribution recepits
authorSeamus Lee <seamuslee001@gmail.com>
Fri, 16 Sep 2016 10:55:26 +0000 (10:55 +0000)
committerSeamus Lee <seamuslee001@gmail.com>
Fri, 16 Sep 2016 11:07:17 +0000 (11:07 +0000)
CRM/Contribute/Form/Task/PDF.php

index fe9f9aa1d92bee55d3edc632c5dd378e455301fc..5f342c1db4a29977d4930b494b539b6f09476322 100644 (file)
@@ -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'];