From 4c5580452e46ff27e0685f189479501573bf2726 Mon Sep 17 00:00:00 2001 From: Ken West Date: Sat, 7 Jun 2014 23:43:18 +1000 Subject: [PATCH] CRM-14813 Online event rego receipt - no credit card details shown. Fix contributeMode, munge credit_card_number, and format credit_card_exp_date --- CRM/Event/BAO/Event.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/CRM/Event/BAO/Event.php b/CRM/Event/BAO/Event.php index a2d9169e87..dde829e60a 100644 --- a/CRM/Event/BAO/Event.php +++ b/CRM/Event/BAO/Event.php @@ -1139,9 +1139,16 @@ WHERE civicrm_event.is_active = 1 'email' => $email, 'confirm_email_text' => CRM_Utils_Array::value('confirm_email_text', $values['event']), 'isShowLocation' => CRM_Utils_Array::value('is_show_location', $values['event']), - 'contributeMode' => NULL, + 'contributeMode' => CRM_Utils_Array::value('contributeMode', $template->_tpl_vars), 'participantID' => $participantId, 'conference_sessions' => $sessions, + 'credit_card_number' => + CRM_Utils_System::mungeCreditCard( + CRM_Utils_Array::value('credit_card_number', $participantParams)), + 'credit_card_exp_date' => + CRM_Utils_Date::mysqlToIso( + CRM_Utils_Date::format( + CRM_Utils_Array::value('credit_card_exp_date', $participantParams))), )); // CRM-13890 : NOTE wait list condition need to be given so that -- 2.25.1