From: Peter Hartmann Date: Tue, 23 Feb 2016 05:54:44 +0000 (-0500) Subject: Fix for CRM-18061 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=d8a74d68c37369d8ebb785d9f0baab98b93ea4c1;p=civicrm-core.git Fix for CRM-18061 --- diff --git a/CRM/Admin/Form/PaymentProcessor.php b/CRM/Admin/Form/PaymentProcessor.php index c14991c9f8..f687933d49 100644 --- a/CRM/Admin/Form/PaymentProcessor.php +++ b/CRM/Admin/Form/PaymentProcessor.php @@ -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,