dev/event#8 Event Cart: save Participant custom field data
authorMathieu Lutfy <mathieu@symbiotic.coop>
Fri, 12 Jul 2019 17:35:57 +0000 (13:35 -0400)
committerMathieu Lutfy <mathieu@bidon.ca>
Fri, 12 Jul 2019 17:35:57 +0000 (13:35 -0400)
CRM/Event/Cart/Form/Checkout/ParticipantsAndPrices.php

index 45767901189b3f8324c87fd0748b1311160f6861..72bcc8f921a05cfb28a317c3835816581e42429e 100644 (file)
@@ -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'
+          );
         }
       }
     }