Fix for CRM-16291
authorWeb Access <rohan.katkar@webaccessglobal.com>
Thu, 16 Apr 2015 14:08:26 +0000 (19:38 +0530)
committerWeb Access <rohan.katkar@webaccessglobal.com>
Thu, 16 Apr 2015 14:08:26 +0000 (19:38 +0530)
CRM/Core/BAO/ActionSchedule.php

index e4b4736795a75a9c7acf1568e7555bb52d6e0645..fed2469feeb5fbb2ed1861f2e6bddac21cad5679 100755 (executable)
@@ -1049,7 +1049,7 @@ WHERE reminder.action_schedule_id = %1 AND reminder.action_date_time IS NULL
           );
           $rList = implode(',', $rList);
 
-          switch ($recipientOptions[$actionSchedule->recipient]) {
+          switch (CRM_Utils_Array::value($actionSchedule->recipient, $recipientOptions)) {
             case 'participant_role':
               $where[] = "e.role_id IN ({$rList})";
               break;