From 480784789cf58ad7b11488c7cdd65e56f2dae3d9 Mon Sep 17 00:00:00 2001 From: Jitendra Purohit Date: Wed, 6 Aug 2014 11:24:33 +0530 Subject: [PATCH] Billing Name saved as Participant Name Fix --- CRM/Event/Form/Registration/AdditionalParticipant.php | 2 +- CRM/Event/Form/Registration/Confirm.php | 8 -------- 2 files changed, 1 insertion(+), 9 deletions(-) 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; -- 2.25.1