From ba21ed5d9f63855ea87f1cb439f39da248ffb9d7 Mon Sep 17 00:00:00 2001 From: Nicolas Le Goff Date: Fri, 20 Dec 2013 14:30:47 +0100 Subject: [PATCH] Fix #1637 Pagination is not working in report --- lib/classes/module/report/sqlaction.php | 4 ++-- lib/classes/module/report/sqldownload.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/classes/module/report/sqlaction.php b/lib/classes/module/report/sqlaction.php index b29a0273d1..efed406be3 100644 --- a/lib/classes/module/report/sqlaction.php +++ b/lib/classes/module/report/sqlaction.php @@ -68,7 +68,7 @@ class module_report_sqlaction extends module_report_sql implements module_report $stmt = $this->getConnBas()->prepare($this->sql); $stmt->execute($this->params); - $this->total = $stmt->rowCount(); + $this->total_row = $stmt->rowCount(); $stmt->closeCursor(); $this->sql .= $this->filter->getOrderFilter($customFieldMap) ? : ''; @@ -91,7 +91,7 @@ class module_report_sqlaction extends module_report_sql implements module_report $stmt = $this->getConnBas()->prepare($this->sql); $stmt->execute($this->params); - $this->total = $stmt->rowCount(); + $this->total_row = $stmt->rowCount(); $stmt->closeCursor(); } diff --git a/lib/classes/module/report/sqldownload.php b/lib/classes/module/report/sqldownload.php index 4edc45e30c..5682d196e9 100644 --- a/lib/classes/module/report/sqldownload.php +++ b/lib/classes/module/report/sqldownload.php @@ -97,7 +97,7 @@ class module_report_sqldownload extends module_report_sql implements module_repo $stmt = $this->connbas->prepare($this->sql); $stmt->execute($this->params); - $this->total = $stmt->rowCount(); + $this->total_row = $stmt->rowCount(); $stmt->closeCursor(); if (count($customFieldMap) > 0) {