Fix for event info message
authorSudha Bisht <sudha.bisht@webaccessglobal.com>
Mon, 29 Jun 2015 07:06:34 +0000 (12:36 +0530)
committerSudha Bisht <sudha.bisht@webaccessglobal.com>
Mon, 29 Jun 2015 07:06:34 +0000 (12:36 +0530)
CRM/Event/Page/EventInfo.php

index 014fd512bb2c74da636f96e85f0695c9559d5067..3bab4a99c0f67062583dee36a3c4a0bc1d3c3e3d 100644 (file)
@@ -79,7 +79,8 @@ class CRM_Event_Page_EventInfo extends CRM_Core_Page {
 
     if (!$values['event']['is_active']) {
       // form is inactive, die a fatal death
-      CRM_Core_Error::fatal(ts('The page you requested is currently unavailable.'));
+      CRM_Utils_System::setUFMessage(ts('The event you requested is currently unavailable (contact the site administrator for assistance).'));
+      return CRM_Utils_System::permissionDenied();
     }
 
     if (!empty($values['event']['is_template'])) {