mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-10 19:43:16 +00:00
Fix #1637 Pagination is not working in report
This commit is contained in:
@@ -68,7 +68,7 @@ class module_report_sqlaction extends module_report_sql implements module_report
|
|||||||
|
|
||||||
$stmt = $this->getConnBas()->prepare($this->sql);
|
$stmt = $this->getConnBas()->prepare($this->sql);
|
||||||
$stmt->execute($this->params);
|
$stmt->execute($this->params);
|
||||||
$this->total = $stmt->rowCount();
|
$this->total_row = $stmt->rowCount();
|
||||||
$stmt->closeCursor();
|
$stmt->closeCursor();
|
||||||
|
|
||||||
$this->sql .= $this->filter->getOrderFilter($customFieldMap) ? : '';
|
$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 = $this->getConnBas()->prepare($this->sql);
|
||||||
$stmt->execute($this->params);
|
$stmt->execute($this->params);
|
||||||
$this->total = $stmt->rowCount();
|
$this->total_row = $stmt->rowCount();
|
||||||
$stmt->closeCursor();
|
$stmt->closeCursor();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -97,7 +97,7 @@ class module_report_sqldownload extends module_report_sql implements module_repo
|
|||||||
|
|
||||||
$stmt = $this->connbas->prepare($this->sql);
|
$stmt = $this->connbas->prepare($this->sql);
|
||||||
$stmt->execute($this->params);
|
$stmt->execute($this->params);
|
||||||
$this->total = $stmt->rowCount();
|
$this->total_row = $stmt->rowCount();
|
||||||
$stmt->closeCursor();
|
$stmt->closeCursor();
|
||||||
|
|
||||||
if (count($customFieldMap) > 0) {
|
if (count($customFieldMap) > 0) {
|
||||||
|
Reference in New Issue
Block a user