From f2f988542f3c10c1711d5601d25e6fa6049a4793 Mon Sep 17 00:00:00 2001
From: Dave Greenberg <dave@civicrm.org>
Date: Mon, 13 May 2013 12:23:15 -0700
Subject: [PATCH] CRM-12562 Mis-named array item check in Batch.php was causing
 batch update to set participant role profile field as is_multiple
 (conditional on line 204 was checking for participant_role_id instead of
 participant_role).

----------------------------------------
* CRM-12562: Batch Update Participant Roles Not Set, Not Checkboxes, Data Overwritten
  http://issues.civicrm.org/jira/browse/CRM-12562
---
 CRM/Event/Form/Task/Batch.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/CRM/Event/Form/Task/Batch.php b/CRM/Event/Form/Task/Batch.php
index 6bb4047b00..72c28aa0d5 100644
--- a/CRM/Event/Form/Task/Batch.php
+++ b/CRM/Event/Form/Task/Batch.php
@@ -201,7 +201,7 @@ class CRM_Event_Form_Task_Batch extends CRM_Event_Form_Task {
           }
         }
         else {
-          if ($field['name'] == 'participant_role_id') {
+          if ($field['name'] == 'participant_role') {
             $field['is_multiple'] = TRUE;
           }
           // handle non custom fields
-- 
GitLab