From: Jitendra Purohit Date: Wed, 6 Aug 2014 05:54:33 +0000 (+0530) Subject: Billing Name saved as Participant Name Fix X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=480784789cf58ad7b11488c7cdd65e56f2dae3d9;p=civicrm-core.git Billing Name saved as Participant Name Fix --- diff --git a/CRM/Event/Form/Registration/AdditionalParticipant.php b/CRM/Event/Form/Registration/AdditionalParticipant.php index bc4a6148c8..df561596a8 100644 --- a/CRM/Event/Form/Registration/AdditionalParticipant.php +++ b/CRM/Event/Form/Registration/AdditionalParticipant.php @@ -191,7 +191,7 @@ class CRM_Event_Form_Registration_AdditionalParticipant extends CRM_Event_Form_R } foreach (array( 'first_name', 'last_name') as $name) { - if (!empty($$keys[$name]) && + if (array_key_exists($name, $$keys) && CRM_Utils_Array::value('is_required', CRM_Utils_Array::value($name, $$keys)) ) { $$name = 1; diff --git a/CRM/Event/Form/Registration/Confirm.php b/CRM/Event/Form/Registration/Confirm.php index 1a25aa1ed0..4d6ca14f2e 100644 --- a/CRM/Event/Form/Registration/Confirm.php +++ b/CRM/Event/Form/Registration/Confirm.php @@ -1089,14 +1089,6 @@ class CRM_Event_Form_Registration_Confirm extends CRM_Event_Form_Registration { * @param $form */ public static function assignProfiles(&$form) { - $addParticipantProfile = $form->get('addParticipantProfile'); - $primaryParticipantProfile = $form->get('primaryParticipantProfile'); - if (!empty($addParticipantProfile) || !empty($primaryParticipantProfile)) { - $form->assign('addParticipantProfile', $addParticipantProfile); - $form->assign('primaryParticipantProfile', $primaryParticipantProfile); - return; - } - $participantParams = $form->_params; $formattedValues = $profileFields = array(); $count = 1;