From: deb.monish Date: Tue, 1 Aug 2017 21:52:40 +0000 (+0530) Subject: CRM-13309: Participant Role on Event's Schedule Reminder form does not populate X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=93fdcf55f01500fbad156b8c960e555f62b9616c;p=civicrm-core.git CRM-13309: Participant Role on Event's Schedule Reminder form does not populate --- 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() != '' ) {