From df322c7aae48f89521ce549acd61f7ed57adf20e Mon Sep 17 00:00:00 2001 From: Ravish Nair Date: Tue, 10 Sep 2013 16:20:02 +0530 Subject: [PATCH] -- CRM-13352 applied the fix ---------------------------------------- * CRM-13352: After disabling some Event Types I don't need, get undefined index error in Event Template browse() http://issues.civicrm.org/jira/browse/CRM-13352 --- CRM/Admin/Page/EventTemplate.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CRM/Admin/Page/EventTemplate.php b/CRM/Admin/Page/EventTemplate.php index 092f9cf314..806eb43fa1 100644 --- a/CRM/Admin/Page/EventTemplate.php +++ b/CRM/Admin/Page/EventTemplate.php @@ -116,7 +116,9 @@ class CRM_Admin_Page_EventTemplate extends CRM_Core_Page_Basic { } //get event type. - $allEventTemplates[$eventTemplate->id]['event_type'] = $eventTypes[$eventTemplate->event_type_id]; + if (isset($eventTypes[$eventTemplate->event_type_id])) { + $allEventTemplates[$eventTemplate->id]['event_type'] = $eventTypes[$eventTemplate->event_type_id]; + } //form all action links $action = array_sum(array_keys($this->links())); -- 2.25.1