From 4b35197072985c18a594c4ecdffd7a89ff635ac4 Mon Sep 17 00:00:00 2001 From: Dave Greenberg Date: Mon, 5 Aug 2013 12:30:15 -0700 Subject: [PATCH] CRM-13158 adding event_type variable to event/info page. ---------------------------------------- * CRM-13158: Event Type label should be available for Event Info pages http://issues.civicrm.org/jira/browse/CRM-13158 --- CRM/Event/Page/EventInfo.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CRM/Event/Page/EventInfo.php b/CRM/Event/Page/EventInfo.php index 4e6cf32acb..47d9fc58e1 100644 --- a/CRM/Event/Page/EventInfo.php +++ b/CRM/Event/Page/EventInfo.php @@ -88,6 +88,9 @@ class CRM_Event_Page_EventInfo extends CRM_Core_Page { CRM_Core_Error::fatal(ts('The page you requested is currently unavailable.')); } + // Add Event Type to $values in case folks want to display it + $values['event']['event_type'] = CRM_Utils_Array::value($values['event']['event_type_id'], CRM_Event_PseudoConstant::eventType()); + $this->assign('isShowLocation', CRM_Utils_Array::value('is_show_location', $values['event'])); // show event fees. -- 2.25.1