Skip to content

Commit

Permalink
Merge pull request #24564 from MegaphoneJon/dont-repeat-email
Browse files Browse the repository at this point in the history
Don't repeat email twice on the contribution confirm/thank-you pages
  • Loading branch information
yashodha authored Oct 4, 2022
2 parents 6f025bf + 8187b2a commit 652b01e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CRM/Contribute/Form/ContributionBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -577,6 +577,7 @@ public function assignToTemplate() {
}
$this->assignPaymentFields();
$this->assignEmailField();
$this->assign('emailExists', $this->_emailExists);

// also assign the receipt_text
if (isset($this->_values['receipt_text'])) {
Expand Down
2 changes: 1 addition & 1 deletion templates/CRM/Contribute/Form/Contribution/Confirm.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@
</div>
{/if}
{/if}
{if $email}
{if !$emailExists}
<div class="crm-group contributor_email-group">
<div class="header-dark">
{ts}Your Email{/ts}
Expand Down
2 changes: 1 addition & 1 deletion templates/CRM/Contribute/Form/Contribution/ThankYou.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@
</div>
{/if}
{/if}
{if $email}
{if !$emailExists}
<div class="crm-group contributor_email-group">
<div class="header-dark">
{ts}Your Email{/ts}
Expand Down

0 comments on commit 652b01e

Please sign in to comment.