X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FAdmin%2FPage%2FEventTemplate.php;h=c373135e635af01c710ac26fd5d5caa52b51b97b;hb=89952fb62b7a7a90a4427ff0f657358c8f405ebe;hp=98b5d9b8d0e3344a869d7bb20ceb9ea00aed117a;hpb=d36fcd1e418ab43bff5cc2f5b360bbc5261b9d1f;p=civicrm-core.git diff --git a/CRM/Admin/Page/EventTemplate.php b/CRM/Admin/Page/EventTemplate.php index 98b5d9b8d0..c373135e63 100644 --- a/CRM/Admin/Page/EventTemplate.php +++ b/CRM/Admin/Page/EventTemplate.php @@ -76,7 +76,7 @@ class CRM_Admin_Page_EventTemplate extends CRM_Core_Page_Basic { $eventTypes = CRM_Event_PseudoConstant::eventType(); $participantRoles = CRM_Event_PseudoConstant::participantRole(); - $participantListings = CRM_Event_PseudoConstant::participantListing(); + $participantListings = CRM_Event_BAO_Event::buildOptions('participant_listing_id'); //find all event templates. $eventTemplate->is_template = TRUE; @@ -85,16 +85,19 @@ class CRM_Admin_Page_EventTemplate extends CRM_Core_Page_Basic { CRM_Core_DAO::storeValues($eventTemplate, $allEventTemplates[$eventTemplate->id]); //get listing types. + $allEventTemplates[$eventTemplate->id]['participant_listing'] = ts('Disabled'); if ($eventTemplate->participant_listing_id) { $allEventTemplates[$eventTemplate->id]['participant_listing'] = $participantListings[$eventTemplate->participant_listing_id]; } //get participant role + $allEventTemplates[$eventTemplate->id]['participant_role'] = ''; if ($eventTemplate->default_role_id) { $allEventTemplates[$eventTemplate->id]['participant_role'] = $participantRoles[$eventTemplate->default_role_id]; } //get event type. + $allEventTemplates[$eventTemplate->id]['event_type'] = ''; if (isset($eventTypes[$eventTemplate->event_type_id])) { $allEventTemplates[$eventTemplate->id]['event_type'] = $eventTypes[$eventTemplate->event_type_id]; }