CRM-21038 - select default processor if hidden by amount selection
authorJitendra Purohit <jitendra@fuzion.co.nz>
Mon, 7 Aug 2017 10:04:03 +0000 (15:34 +0530)
committerJitendra Purohit <jitendra@fuzion.co.nz>
Mon, 7 Aug 2017 10:04:03 +0000 (15:34 +0530)
templates/CRM/common/paymentBlock.tpl

index acbafb5ca3dcc2361fafa39cd87df6797b16b1cc..f509332d76001db4f7f56d88c7b6498da7409252 100644 (file)
@@ -52,6 +52,8 @@
       payment_processor.show();
       payment_information.show();
       billing_block.show();
+      // also set selected payment methods
+      cj('input[name="payment_processor_id"][checked=checked]').prop('checked', true);
     }
   }