From 0c951b759d6bfdc4bf229347033ea2ab34a86d8c Mon Sep 17 00:00:00 2001 From: yashodha Date: Mon, 9 Feb 2015 17:05:14 +0530 Subject: [PATCH] CRM-15940: fix error message for missing report template ---------------------------------------- * CRM-15940: Report gives white screen rather than sensible error if report instance is invalid https://issues.civicrm.org/jira/browse/CRM-15940 --- CRM/Report/Page/Instance.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CRM/Report/Page/Instance.php b/CRM/Report/Page/Instance.php index f9d4fe63cf..f7e4815044 100644 --- a/CRM/Report/Page/Instance.php +++ b/CRM/Report/Page/Instance.php @@ -71,8 +71,7 @@ class CRM_Report_Page_Instance extends CRM_Core_Page { else { $templateInfo = CRM_Core_OptionGroup::getRowValues('report_template', "{$optionVal}", 'value'); if (empty($templateInfo)) { - CRM_Core_Session::setStatus(ts('Could not find template for the instance.'), ts('Template Not Found'), 'error'); - return; + CRM_Core_Error::statusBounce('You have tried to access a report that does not exist.'); } $extKey = strpos($templateInfo['name'], '.'); -- 2.25.1