CRM-14431 - send report api function exits rather than returning (this can mess up...
authorDeepak Srivastava <deepak.srivastava.0303@gmail.com>
Fri, 2 May 2014 07:16:26 +0000 (12:46 +0530)
committerDeepak Srivastava <deepak.srivastava.0303@gmail.com>
Fri, 2 May 2014 07:16:26 +0000 (12:46 +0530)
https://issues.civicrm.org/jira/browse/CRM-14431

CRM/Report/Form.php

index 274fdcbf66671ba5973eb2055124de04b924ea77..3fe222c536219651a6bf9c7e8ac6a5f20f0a0c1b 100644 (file)
@@ -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;