From d8a74d68c37369d8ebb785d9f0baab98b93ea4c1 Mon Sep 17 00:00:00 2001 From: Peter Hartmann Date: Tue, 23 Feb 2016 00:54:44 -0500 Subject: [PATCH] Fix for CRM-18061 --- CRM/Admin/Form/PaymentProcessor.php | 4 ++++ 1 file changed, 4 insertions(+) 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, -- 2.25.1