CRM-15445: fix missing title
authorCiviCRM <info@civicrm.org>
Mon, 27 Oct 2014 10:47:34 +0000 (16:17 +0530)
committerCiviCRM <info@civicrm.org>
Mon, 27 Oct 2014 10:47:34 +0000 (16:17 +0530)
CRM/Contribute/Form/Contribution/Main.php
CRM/Core/Payment/PayPalImpl.php

index a4af570e964a9082becbb5156f20557b0f223178..365009a07863eb5b1c6bef2e82da8cf32abdfd4f 100644 (file)
@@ -1322,6 +1322,7 @@ class CRM_Contribute_Form_Contribution_Main extends CRM_Contribute_Form_Contribu
           $params['cancelURL'] = CRM_Utils_System::url('civicrm/contribute/transact', "_qf_Main_display=1&qfKey={$params['qfKey']}", TRUE, NULL, FALSE);
           $params['returnURL'] = CRM_Utils_System::url('civicrm/contribute/transact', "_qf_Confirm_display=1&rfp=1&qfKey={$params['qfKey']}", TRUE, NULL, FALSE);
           $params['invoiceID'] = $invoiceID;
+          $params['description'] = ts('Online Contribution') . ': ' . (($this->_pcpInfo['title']) ? $this->_pcpInfo['title'] : $this->_values['title']);
 
           //default action is Sale
           $params['payment_action'] = 'Sale';
index 1f6563af5e82174e1a57b766863cd146506a9879..8481a4ec81cc3bcf5c98c1bad65025e1d1bef1cd 100644 (file)
@@ -110,6 +110,7 @@ class CRM_Core_Payment_PayPalImpl extends CRM_Core_Payment {
     $args['paymentAction'] = $params['payment_action'];
     $args['amt'] = $params['amount'];
     $args['currencyCode'] = $params['currencyID'];
+    $args['desc'] = $params['description'];
     $args['invnum'] = $params['invoiceID'];
     $args['returnURL'] = $params['returnURL'];
     $args['cancelURL'] = $params['cancelURL'];
@@ -201,6 +202,7 @@ class CRM_Core_Payment_PayPalImpl extends CRM_Core_Payment {
     $args['invnum'] = $params['invoiceID'];
     $args['returnURL'] = $params['returnURL'];
     $args['cancelURL'] = $params['cancelURL'];
+    $args['desc'] = $params['description'];
 
     $result = $this->invokeAPI($args);