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>
Fri, 19 May 2023 02:33:31 +0000 (14:33 +1200)
CRM/Financial/BAO/PaymentProcessor.php

index 95e7ce293132fdf648434775fdfa204c501248be..4a316ef1478ec2ab5e5375914a952ac620798533 100644 (file)
@@ -301,6 +301,8 @@ class CRM_Financial_BAO_PaymentProcessor extends CRM_Financial_DAO_PaymentProces
       $fieldsToProvide = [
         'id',
         'name',
+        'title',
+        'frontend_title',
         'payment_processor_type_id',
         'user_name',
         'password',
@@ -331,6 +333,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',