Fix for CRM-18061
authorPeter Hartmann <peter@hartmanncomputer.com>
Tue, 23 Feb 2016 05:54:44 +0000 (00:54 -0500)
committerjitendrapurohit <jitendra.purohit@webaccessglobal.com>
Fri, 4 Mar 2016 06:11:28 +0000 (11:41 +0530)
CRM/Admin/Form/PaymentProcessor.php

index c14991c9f8f188facfd69d63f153a7607a93273c..f687933d49c86b069b4f855e213000102e78c668 100644 (file)
@@ -378,6 +378,10 @@ class CRM_Admin_Form_PaymentProcessor extends CRM_Admin_Form {
    * @param bool $test
    */
   public function updatePaymentProcessor(&$values, $domainID, $test) {
+    if ($test == TRUE) {
+      $values['user_name'] = $values['test_user_name'];
+      $values['password'] = $values['test_password'];
+    }  
     $params  = array_merge(array(
       'id' => $test ? $this->_testID : $this->_id,
       'domain_id' => $domainID,