From 824aede60bedbceae81ddb2e080bf002bb69c6e0 Mon Sep 17 00:00:00 2001 From: Deepak Srivastava Date: Fri, 2 May 2014 12:46:26 +0530 Subject: [PATCH] CRM-14431 - send report api function exits rather than returning (this can mess up scheduled jobs) https://issues.civicrm.org/jira/browse/CRM-14431 --- CRM/Report/Form.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CRM/Report/Form.php b/CRM/Report/Form.php index 274fdcbf66..3fe222c536 100644 --- a/CRM/Report/Form.php +++ b/CRM/Report/Form.php @@ -2578,8 +2578,7 @@ WHERE cg.extends IN ('" . implode("','", $this->_customGroupExtends) . "') AND else { CRM_Core_Session::setStatus(ts("Report mail could not be sent."), ts('Mail Error'), 'error'); } - - CRM_Utils_System::redirect(CRM_Utils_System::url(CRM_Utils_System::currentPath(), 'reset=1')); + return TRUE; } elseif ($this->_outputMode == 'print') { echo $content; -- 2.25.1