// CRM-13890 : NOTE wait list condition need to be given so that
// wait list message is shown properly in email i.e. WRT online event registration template
- if (empty($values['params']['isOnWaitlist'])) {
+ if (empty($tplParams['participant_status']) && empty($values['params']['isOnWaitlist'])) {
$statusId = CRM_Core_DAO::getFieldValue('CRM_Event_DAO_Participant', $participantId, 'status_id', 'id');
$tplParams['participant_status'] = CRM_Event_PseudoConstant::participantStatus($statusId, NULL, 'label');
}
+ //CRM-15754 - if participant_status contains status ID
+ elseif (CRM_Utils_Rule::integer($tplParams['participant_status'])) {
+ $tplParams['participant_status'] = CRM_Event_PseudoConstant::participantStatus($tplParams['participant_status'], NULL, 'label');
+ }
$sendTemplateParams = array(
'groupName' => 'msg_tpl_workflow_event',