From c71018031a76cbfb7dab00aec2c2f511e05231cf Mon Sep 17 00:00:00 2001 From: CiviCRM Date: Wed, 18 Jun 2014 15:05:29 +0530 Subject: [PATCH] fix notice for participant role --- CRM/Event/Form/Participant.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Event/Form/Participant.php b/CRM/Event/Form/Participant.php index 8fa680d13d..51215280e8 100644 --- a/CRM/Event/Form/Participant.php +++ b/CRM/Event/Form/Participant.php @@ -1537,7 +1537,7 @@ class CRM_Event_Form_Participant extends CRM_Contact_Form_Task { $participantRoles = CRM_Utils_Array::value('role_id', $params); if (is_array($participantRoles)) { $selectedRoles = array(); - foreach (array_keys($participantRoles) as $roleId) { + foreach ($participantRoles as $roleId) { $selectedRoles[] = $role[$roleId]; } $event['participant_role'] = implode(', ', $selectedRoles); -- 2.25.1