CRM-15757 Notices fix
authorRohan Katkar <rohan.katkar@webaccessglobal.com>
Fri, 26 Dec 2014 13:03:17 +0000 (18:33 +0530)
committerRohan Katkar <rohan.katkar@webaccessglobal.com>
Fri, 26 Dec 2014 13:03:17 +0000 (18:33 +0530)
CRM/Core/Payment/PayPalImpl.php
CRM/Event/Form/EventFees.php

index 999df0598517d4878ee45cdd80f2aa908d15e58a..dae881e06e9bea1883135e9a20c8a2b7163f037c 100644 (file)
@@ -303,7 +303,7 @@ class CRM_Core_Payment_PayPalImpl extends CRM_Core_Payment {
     $args['pwd']       = $this->_paymentProcessor['password'];
     $args['version']   = 3.0;
     $args['signature'] = $this->_paymentProcessor['signature'];
-    $args['subject']   = $this->_paymentProcessor['subject'];
+    $args['subject']   = CRM_Utils_Array::value('subject', $this->_paymentProcessor);
     $args['method']    = $method;
   }
 
index 4d7b5ee6dedd14ff65f1b4c877c302ff0be2890a..42d7bb6cb150cbf9cdadb57b12a6a8c88781183f 100644 (file)
@@ -410,7 +410,7 @@ SELECT  id, html_type
         }
       }
       if ($form->_mode) {
-        CRM_Core_Payment_Form::buildPaymentForm($form, $form->_processor, FALSE);
+        CRM_Core_Payment_Form::buildPaymentForm($form, $form->_paymentProcessor, FALSE);
       }
       elseif (!$form->_mode) {
         $form->addElement('checkbox', 'record_contribution', ts('Record Payment?'), NULL,