From: Effy Elden Date: Sat, 21 May 2016 11:07:35 +0000 (-0400) Subject: CRM-18625 - use test_url_site and test_url_recur if updating test processor X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=db38b50b6e49a2a6576199e704a351480e464d46;p=civicrm-core.git CRM-18625 - use test_url_site and test_url_recur if updating test processor ---------------------------------------- * CRM-18625: Authorize.net not saving testing URL https://issues.civicrm.org/jira/browse/CRM-18625 --- diff --git a/CRM/Admin/Form/PaymentProcessor.php b/CRM/Admin/Form/PaymentProcessor.php index a0367bb24b..9d02c01e65 100644 --- a/CRM/Admin/Form/PaymentProcessor.php +++ b/CRM/Admin/Form/PaymentProcessor.php @@ -379,7 +379,7 @@ class CRM_Admin_Form_PaymentProcessor extends CRM_Admin_Form { */ public function updatePaymentProcessor(&$values, $domainID, $test) { if ($test) { - foreach (array('user_name', 'password', 'signature') as $field) { + foreach (array('user_name', 'password', 'signature', 'url_site', 'url_recur') as $field) { $values[$field] = empty($values["test_{$field}"]) ? CRM_Utils_Array::value($field, $values) : $values["test_{$field}"]; } }