CRM-14813 Online event rego receipt - no credit card details shown. Fix contributeMod...
authorKen West <ken.west@internode.on.net>
Sat, 7 Jun 2014 13:43:18 +0000 (23:43 +1000)
committerKen West <ken.west@internode.on.net>
Sat, 7 Jun 2014 13:43:18 +0000 (23:43 +1000)
CRM/Event/BAO/Event.php

index a2d9169e8771428bddab607fd36c8a00000a0a0e..dde829e60a0371f4af93792277565c570239bb0a 100644 (file)
@@ -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