From 93fdcf55f01500fbad156b8c960e555f62b9616c Mon Sep 17 00:00:00 2001 From: "deb.monish" Date: Wed, 2 Aug 2017 03:22:40 +0530 Subject: [PATCH] CRM-13309: Participant Role on Event's Schedule Reminder form does not populate --- CRM/Admin/Form/ScheduleReminders.php | 3 +++ templates/CRM/Admin/Form/ScheduleReminders.tpl | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CRM/Admin/Form/ScheduleReminders.php b/CRM/Admin/Form/ScheduleReminders.php index 21f82dc321..9e47d4b404 100644 --- a/CRM/Admin/Form/ScheduleReminders.php +++ b/CRM/Admin/Form/ScheduleReminders.php @@ -100,6 +100,9 @@ class CRM_Admin_Form_ScheduleReminders extends CRM_Admin_Form { } elseif ($this->_mappingID) { $mappingID = $this->_mappingID; + if ($this->_context == 'event') { + $this->add('hidden', 'mappingID', $mappingID); + } } $this->add( diff --git a/templates/CRM/Admin/Form/ScheduleReminders.tpl b/templates/CRM/Admin/Form/ScheduleReminders.tpl index 0ebb82761d..259148dafb 100644 --- a/templates/CRM/Admin/Form/ScheduleReminders.tpl +++ b/templates/CRM/Admin/Form/ScheduleReminders.tpl @@ -194,7 +194,7 @@ $('#mode', $form).change(loadMsgBox); function populateRecipient() { - var mappingID = $('#entity_0', $form).val(); + var mappingID = $('#entity_0', $form).val() || $('[name^=mappingID]', $form).val(); var recipient = $("#recipient", $form).val(); $("#recipientList", $form).hide(); if ($('#limit_to').val() != '' ) { -- 2.25.1