Skip to content

Commit

Permalink
Merge pull request #15532 from eileenmcnaughton/event_cont_mode
Browse files Browse the repository at this point in the history
Fix logic determining whether (masked) credit card details are displayed in event online receipts
  • Loading branch information
seamuslee001 authored Oct 18, 2019
2 parents 1b6e799 + ea93110 commit b1dcacd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions tests/phpunit/CRM/Event/Form/Registration/ConfirmTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,9 @@ public function testPaidSubmit($thousandSeparator) {
], $entityFinancialTrxns[2], ['id', 'entity_id']);
$mut->checkMailLog([
'Event Information and Location', 'Registration Confirmation - Annual CiviCRM meet',
'Expires: January 2019',
'Visa',
'************1111',
'This letter is a confirmation that your registration has been received and your status has been updated to <strong> Registered</strong>',
]);
$mut->clearMessages();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@
</tr>
{/if}

{if $contributeMode eq 'direct' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval}
{if $credit_card_type}
<tr>
<th {$headerStyle}>
{ts}Credit Card Information{/ts}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ You were registered by: {$payer.name}
{$address}
{/if}

{if $contributeMode eq 'direct' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval}
{if $credit_card_type}
==========================================================={if $pricesetFieldsCount }===================={/if}

{ts}Credit Card Information{/ts}
Expand Down

0 comments on commit b1dcacd

Please sign in to comment.