Fix failure when changing processor type on add Payment Processor screen
authorAidan Saunders <aidan.saunders@squiffle.uk>
Fri, 13 Jan 2023 16:43:16 +0000 (16:43 +0000)
committerAidan Saunders <aidan.saunders@squiffle.uk>
Fri, 13 Jan 2023 16:44:32 +0000 (16:44 +0000)
CRM/Admin/Form/PaymentProcessor.php

index 1700337313ee45e33c94c4f36af00070b33eaf5d..2e6a3b99d11093884073dc6140cd8815cb032e1f 100644 (file)
@@ -114,13 +114,13 @@ class CRM_Admin_Form_PaymentProcessor extends CRM_Admin_Form {
     $this->assign('ppTypeName', $this->_paymentProcessorDAO->name);
 
     if ($this->_id) {
-      $refreshURL = CRM_Utils_System::url('civicrm/admin/paymentProcessor',
+      $refreshURL = CRM_Utils_System::url('civicrm/admin/paymentProcessor/edit',
         "reset=1&action=update&id={$this->_id}",
         FALSE, NULL, FALSE
       );
     }
     else {
-      $refreshURL = CRM_Utils_System::url('civicrm/admin/paymentProcessor',
+      $refreshURL = CRM_Utils_System::url('civicrm/admin/paymentProcessor/edit',
         "reset=1&action=add",
         FALSE, NULL, FALSE
       );