Skip to content

Commit

Permalink
Refs #40657, Fix typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
apple843119 committed Jun 5, 2024
1 parent 125f609 commit cb8284f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CRM/Contribute/Form/AdditionalInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ static function emailReceipt(&$form, &$params, $ccContribution = FALSE) {
$receiptTask->makeReceipt($params['contribution_id'], $receiptEmailType, TRUE);
//set encrypt password
if (!empty($config->receiptEmailEncryption) && $config->receiptEmailEncryption) {
$receiptPwd = $form->userEmail;
$receiptPwd = $contributorEmail;
if (!empty($receiptTask->_lastSerialId) && preg_match('/^[A-Za-z]{1,2}\d{8,9}$|^\d{8}$/', $receiptTask->_lastSerialId)) {
$receiptPwd = $receiptTask->_lastSerialId;
}
Expand Down Expand Up @@ -460,8 +460,8 @@ static function emailReceipt(&$form, &$params, $ccContribution = FALSE) {
else {
//offline contribution
//Retrieve the name and email from receipt is to be send
$params['receipt_from_name'] = $form->userDisplayName;
$params['receipt_from_email'] = $form->userEmail;
$params['receipt_from_name'] = $contributorDisplayName;
$params['receipt_from_email'] = $contributorEmail;
// assigned various dates to the templates
$form->assign('receipt_date', CRM_Utils_Date::processDate($params['receipt_date']));
$form->assign('cancel_date', CRM_Utils_Date::processDate($params['cancel_date']));
Expand Down

0 comments on commit cb8284f

Please sign in to comment.