CRM-18434 - First and last names for billing not displayed in confirmation screen
authorjitendrapurohit <jitendra.purohit@webaccessglobal.com>
Wed, 20 Apr 2016 08:56:07 +0000 (14:26 +0530)
committerjitendrapurohit <jitendra.purohit@webaccessglobal.com>
Wed, 20 Apr 2016 08:56:07 +0000 (14:26 +0530)
CRM/Contribute/Form/Contribution/Confirm.php

index c01b6679cd409ab95ff6355295474a31959a4864..3f82d8003c55d86a6bbdca819cda3aab33d1875d 100644 (file)
@@ -210,11 +210,11 @@ class CRM_Contribute_Form_Contribution_Confirm extends CRM_Contribute_Form_Contr
     if (!empty($this->_paymentProcessor) &&  $this->_paymentProcessor['object']->supports('preApproval')) {
       $preApprovalParams = $this->_paymentProcessor['object']->getPreApprovalDetails($this->get('pre_approval_parameters'));
       $this->_params = array_merge($this->_params, $preApprovalParams);
-    }
 
-    // We may have fetched some billing details from the getPreApprovalDetails function so we
-    // want to ensure we set this after that function has been called.
-    CRM_Core_Payment_Form::mapParams($this->_bltID, $this->_params, $this->_params, FALSE);
+      // We may have fetched some billing details from the getPreApprovalDetails function so we
+      // want to ensure we set this after that function has been called.
+      CRM_Core_Payment_Form::mapParams($this->_bltID, $preApprovalParams, $this->_params, FALSE);
+    }
 
     $this->_params['is_pay_later'] = $this->get('is_pay_later');
     $this->assign('is_pay_later', $this->_params['is_pay_later']);