From 10a78f96afeff968b7ecc2938564360649958070 Mon Sep 17 00:00:00 2001
From: Kevin Cristiano <kcristiano@tadpole.cc>
Date: Tue, 28 Aug 2018 18:09:32 -0400
Subject: [PATCH] Fix Paging on Export to Excel

Signed-off-by: Kevin Cristiano <kcristiano@tadpole.cc>
Signed-off-by: Kevin Cristiano <kcristiano@kcristiano.com>
---
 civicrm/CRM/Report/Form.php | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/civicrm/CRM/Report/Form.php b/civicrm/CRM/Report/Form.php
index 8b063c82fd..0687af7c4c 100644
--- a/civicrm/CRM/Report/Form.php
+++ b/civicrm/CRM/Report/Form.php
@@ -2845,6 +2845,11 @@ WHERE cg.extends IN ('" . implode("','", $this->_customGroupExtends) . "') AND
       $this->_absoluteUrl = TRUE;
       $this->addPaging = FALSE;
     }
+    elseif ($this->_outputMode == 'excel2007') {
+      $printOnly = TRUE;
+      $this->_absoluteUrl = TRUE;
+      $this->addPaging = FALSE;
+    }
     elseif ($this->_outputMode == 'group') {
       $this->assign('outputMode', 'group');
     }
-- 
GitLab