Contribution Confirm Form - minor simplification
authorEileen McNaughton <eileen@fuzion.co.nz>
Tue, 3 Jun 2014 12:39:30 +0000 (00:39 +1200)
committerEileen McNaughton <eileen@fuzion.co.nz>
Tue, 3 Jun 2014 12:39:30 +0000 (00:39 +1200)
CRM/Contribute/Form/Contribution/Confirm.php

index 907b546a54f49a348949d66d41b573a8ddef72c9..f6a911b0b0545ae5cabe4fa928b75110a53593b3 100644 (file)
@@ -689,20 +689,14 @@ class CRM_Contribute_Form_Contribution_Confirm extends CRM_Contribute_Form_Contr
     // fix currency ID
     $this->_params['currencyID'] = CRM_Core_Config::singleton()->defaultCurrency;
 
-    $premiumParams = $membershipParams = $params = $this->_params;
-
     //carry payment processor id.
     if ($paymentProcessorId = CRM_Utils_Array::value('id', $this->_paymentProcessor)) {
       $this->_params['payment_processor_id'] = $paymentProcessorId;
-      foreach (array(
-        'premiumParams', 'membershipParams', 'tempParams', 'params') as $p) {
-        ${$p}['payment_processor_id'] = $paymentProcessorId;
-      }
     }
     if (!empty($params['image_URL'])) {
       CRM_Contact_BAO_Contact::processImageParams($params);
     }
-
+    $premiumParams = $membershipParams = $params = $this->_params;
     $fields = array('email-Primary' => 1);
 
     // get the add to groups