diff --git a/civicrm/CRM/Report/Form.php b/civicrm/CRM/Report/Form.php index d202b845611e96f7c86c13feee7c0357f8c91fd4..449e1a087cb16e2570ecf6cd92abf44b1530a959 100644 --- a/civicrm/CRM/Report/Form.php +++ b/civicrm/CRM/Report/Form.php @@ -1465,7 +1465,7 @@ class CRM_Report_Form extends CRM_Core_Form { if (!CRM_Core_Permission::check('view report sql')) { return; } - $ignored_output_modes = ['pdf', 'csv', 'print']; + $ignored_output_modes = ['pdf', 'csv', 'print', 'excel2007']; if (in_array($this->_outputMode, $ignored_output_modes)) { return; } @@ -2900,6 +2900,12 @@ WHERE cg.extends IN ('" . implode("','", $this->_customGroupExtends) . "') AND $this->addPaging = $this->outputHandler->isAddPaging(); $this->_absoluteUrl = $this->outputHandler->isAbsoluteUrl(); } + + } + elseif ($this->_outputMode == 'excel2007') { + $printOnly = TRUE; + $this->_absoluteUrl = TRUE; + $this->addPaging = FALSE; } elseif ($this->_outputMode == 'copy' && $this->_criteriaForm) { $this->_createNew = TRUE;