Skip to content
Snippets Groups Projects
Commit a63dd656 authored by Kurund Jalmi's avatar Kurund Jalmi
Browse files

Merge pull request #454 from yashodha/CRM-12272

CRM-12272
parents b47d6619 33ab1d69
No related branches found
No related tags found
No related merge requests found
......@@ -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']) && ($value['first_name'] == 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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment