From f1cc1fa5e7f056e1fa24e819ac8add25f90c4f1b Mon Sep 17 00:00:00 2001 From: eileen Date: Mon, 2 Jul 2018 17:50:01 +1200 Subject: [PATCH] Revert change to BillingBlock to support hidden fields. Per discussion with Matt Wire this is actually unnecessary, if we define 'id' in the payment fields metadata. This is a bit too much like spooky magic but it ... erm .. works --- CRM/Core/Payment.php | 2 +- templates/CRM/Core/BillingBlock.tpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Core/Payment.php b/CRM/Core/Payment.php index 832a444da5..b686cd8501 100644 --- a/CRM/Core/Payment.php +++ b/CRM/Core/Payment.php @@ -821,7 +821,7 @@ abstract class CRM_Core_Payment { 'name' => 'payment_token', 'title' => ts('Authorization token'), 'is_required' => FALSE, - 'attributes' => ['size' => 10, 'autocomplete' => 'off'], + 'attributes' => ['size' => 10, 'autocomplete' => 'off', 'id' => 'payment_token'], ), ); } diff --git a/templates/CRM/Core/BillingBlock.tpl b/templates/CRM/Core/BillingBlock.tpl index 02f2a4377c..1e7c56782e 100644 --- a/templates/CRM/Core/BillingBlock.tpl +++ b/templates/CRM/Core/BillingBlock.tpl @@ -39,7 +39,7 @@
{$form.$paymentField.label} {if $requiredPaymentFields.$name}*{/if}
-
{if $form.$paymentField.html}{$form.$paymentField.html}{else}{/if} +
{$form.$paymentField.html} {if $paymentField == 'cvv2'}{* @todo move to form assignment*} {/if} -- 2.25.1