Skip to content

Commit

Permalink
Merge pull request #12391 from eileenmcnaughton/matt
Browse files Browse the repository at this point in the history
Revert change to BillingBlock to support hidden fields.
  • Loading branch information
eileenmcnaughton authored Jul 3, 2018
2 parents 6673795 + f1cc1fa commit d559068
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CRM/Core/Payment.php
Original file line number Diff line number Diff line change
Expand Up @@ -821,7 +821,7 @@ public function getPaymentFormFieldsMetadata() {
'name' => 'payment_token',
'title' => ts('Authorization token'),
'is_required' => FALSE,
'attributes' => ['size' => 10, 'autocomplete' => 'off'],
'attributes' => ['size' => 10, 'autocomplete' => 'off', 'id' => 'payment_token'],
),
);
}
Expand Down
2 changes: 1 addition & 1 deletion templates/CRM/Core/BillingBlock.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
<div class="label">{$form.$paymentField.label}
{if $requiredPaymentFields.$name}<span class="crm-marker" title="{ts}This field is required.{/ts}">*</span>{/if}
</div>
<div class="content">{if $form.$paymentField.html}{$form.$paymentField.html}{else}<input id="{$paymentField}" name="{$paymentField}" type="hidden" />{/if}
<div class="content">{$form.$paymentField.html}
{if $paymentField == 'cvv2'}{* @todo move to form assignment*}
<span class="cvv2-icon" title="{ts}Usually the last 3-4 digits in the signature area on the back of the card.{/ts}"> </span>
{/if}
Expand Down

0 comments on commit d559068

Please sign in to comment.