From 3896b90a99e99a0822c7d44e43fcc780370bed0d Mon Sep 17 00:00:00 2001 From: yashodha Date: Wed, 17 Apr 2013 00:06:21 +0530 Subject: [PATCH] CRM-12272 --- CRM/Event/Form/Registration/AdditionalParticipant.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Event/Form/Registration/AdditionalParticipant.php b/CRM/Event/Form/Registration/AdditionalParticipant.php index ed4d735284..e946064d21 100644 --- a/CRM/Event/Form/Registration/AdditionalParticipant.php +++ b/CRM/Event/Form/Registration/AdditionalParticipant.php @@ -440,8 +440,8 @@ class CRM_Event_Form_Registration_AdditionalParticipant extends CRM_Event_Form_R } else { // check with first_name and last_name for additional participants - if ((CRM_Utils_Array::value('first_name',$value) == $fields['first_name']) && - (CRM_Utils_Array::value('last_name',$value) == $fields['last_name']) + if (!empty($value['first_name']) && (CRM_Utils_Array::value('first_name', $value) == CRM_Utils_Array::value('first_name', $fields)) && + (CRM_Utils_Array::value('last_name',$value) == CRM_Utils_Array::value('last_name', $fields)) ) { $errors['first_name'] = ts('The first name and last name must be unique for each participant.'); break; -- 2.25.1