-- CRM-13352 applied the fix
authorRavish Nair <ravish.nair@webaccess.co.in>
Tue, 10 Sep 2013 10:50:02 +0000 (16:20 +0530)
committerRavish Nair <ravish.nair@webaccess.co.in>
Tue, 10 Sep 2013 10:50:02 +0000 (16:20 +0530)
----------------------------------------
* 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

index 092f9cf314d6aa8eee7b5c2bf3b4586e698b0ba2..806eb43fa174d632529da24090ffd3bd1d1a5f72 100644 (file)
@@ -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()));