Enotice fix on frontend_title
authorEileen McNaughton <emcnaughton@wikimedia.org>
Fri, 19 May 2023 02:28:23 +0000 (14:28 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Sat, 20 May 2023 00:02:52 +0000 (12:02 +1200)
CRM/Financial/BAO/PaymentProcessor.php

index 986adf5573222904bcfc80d4e94d779b6beaa070..39ac6138a4a5a58dd98b29281e3fdaf49758a927 100644 (file)
@@ -307,6 +307,8 @@ class CRM_Financial_BAO_PaymentProcessor extends CRM_Financial_DAO_PaymentProces
       $fieldsToProvide = [
         'id',
         'name',
+        'title',
+        'frontend_title',
         'payment_processor_type_id',
         'user_name',
         'password',
@@ -337,6 +339,8 @@ class CRM_Financial_BAO_PaymentProcessor extends CRM_Financial_DAO_PaymentProces
     $processors['values'][0] = [
       'object' => new CRM_Core_Payment_Manual(),
       'id' => 0,
+      'frontend_title' => ts('Pay later'),
+      'title' => ts('Pay later'),
       'payment_processor_type_id' => 0,
       // This shouldn't be required but there are still some processors hacked into core with nasty 'if's.
       'payment_processor_type' => 'Manual',