Skip to content

Commit

Permalink
dev/core#1255 - fix display of email address on pay later contribution
Browse files Browse the repository at this point in the history
  • Loading branch information
Jitendra Purohit committed Sep 16, 2019
1 parent 04d8165 commit 40cef32
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions CRM/Contribute/Form/ContributionBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -574,9 +574,16 @@ public function assignToTemplate() {
}
$this->assignPaymentFields();

$this->assign('email',
$this->controller->exportValue('Main', "email-{$this->_bltID}")
);
if ($this->_emailExists && empty($this->_params["email-{$this->_bltID}"])) {
foreach ($this->_params as $key => $val) {
if (substr($key, 0, 6) == 'email-') {
$this->assign('email', $this->_params[$key]);
}
}
}
else {
$this->assign('email', $this->_params["email-{$this->_bltID}"]);
}

// also assign the receipt_text
if (isset($this->_values['receipt_text'])) {
Expand Down

0 comments on commit 40cef32

Please sign in to comment.