$values = CRM_Event_PseudoConstant::participantStatus();
break;
- case 'Participant Role':
+ case 'participant_role':
$values = CRM_Event_PseudoConstant::participantRole();
break;
$status = implode(',', $status);
if (!CRM_Utils_System::isNull($mapping->entity_recipient)) {
- $recipientOptions = CRM_Core_OptionGroup::values($mapping->entity_recipient);
+ $recipientOptions = CRM_Core_OptionGroup::values($mapping->entity_recipient, FALSE, FALSE, FALSE, NULL, 'name');
}
$from = "{$mapping->entity} e";
$rList = implode(',', $rList);
switch ($recipientOptions[$actionSchedule->recipient]) {
- case 'Participant Role':
+ case 'participant_role':
$where[] = "e.role_id IN ({$rList})";
break;
if (!CRM_Utils_Array::value($recipientType, $eventContacts)) {
return $options;
}
- if ($eventContacts[$recipientType] == 'Participant Role') {
+ if ($eventContacts[$recipientType] == 'participant_role') {
$options = CRM_Event_PseudoConstant::participantRole();
}
break;
var entity = cj("#entity_0 option:selected").val();
var postUrl = "{/literal}{crmURL p='civicrm/ajax/populateRecipient' h=0}{literal}";
- if(recipientMapping[recipient] == 'Participant Status' || recipientMapping[recipient] == 'Participant Role') {
+ if(recipientMapping[recipient] == 'Participant Status' || recipientMapping[recipient] == 'participant_role') {
var elementID = '#recipient_listing';
cj( elementID ).html('');
cj.post(postUrl, {recipient: recipientMapping[recipient]},