CRM-13309: Participant Role on Event's Schedule Reminder form does not populate
authordeb.monish <monish.deb@jmaconsulting.biz>
Tue, 1 Aug 2017 21:52:40 +0000 (03:22 +0530)
committerdeb.monish <monish.deb@jmaconsulting.biz>
Tue, 1 Aug 2017 22:33:57 +0000 (04:03 +0530)
CRM/Admin/Form/ScheduleReminders.php
templates/CRM/Admin/Form/ScheduleReminders.tpl

index 21f82dc3215006767b9f2b5e4b579de31824e815..9e47d4b404e484e7399c42546cce6b95063d3fca 100644 (file)
@@ -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(
index 0ebb82761d3a9cd58cb82e420b345cc445e68453..259148dafb24a750934dc8a681d803ba4b7fc051 100644 (file)
       $('#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() != '' ) {