From: Mathieu Lutfy Date: Fri, 12 Jul 2019 17:35:57 +0000 (-0400) Subject: dev/event#8 Event Cart: save Participant custom field data X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=adf6c0048379acb6a391892b74299584a47ffcd2;p=civicrm-core.git dev/event#8 Event Cart: save Participant custom field data --- diff --git a/CRM/Event/Cart/Form/Checkout/ParticipantsAndPrices.php b/CRM/Event/Cart/Form/Checkout/ParticipantsAndPrices.php index 4576790118..72bcc8f921 100644 --- a/CRM/Event/Cart/Form/Checkout/ParticipantsAndPrices.php +++ b/CRM/Event/Cart/Form/Checkout/ParticipantsAndPrices.php @@ -301,6 +301,12 @@ class CRM_Event_Cart_Form_Checkout_ParticipantsAndPrices extends CRM_Event_Cart_ $custom_fields = array_merge($participant->get_form()->get_participant_custom_data_fields()); CRM_Contact_BAO_Contact::createProfileContact($this->_submitValues['field'][$participant_id], $custom_fields, $contact_id); + + CRM_Core_BAO_CustomValueTable::postProcess($this->_submitValues['field'][$participant_id], + 'civicrm_participant', + $participant_id, + 'Participant' + ); } } }