Merge pull request #338 from nlegoff/fix_report

[3.7] Fix #1155 Export CSV truncated
This commit is contained in:
Romain Neutron
2013-04-22 07:38:31 -07:00
2 changed files with 7 additions and 4 deletions

View File

@@ -70,8 +70,8 @@ class module_report_sqldownload extends module_report_sql implements module_repo
$stmt->execute($this->params);
$this->total_row = $stmt->rowCount();
$stmt->closeCursor();
$this->sql .= $this->filter->getLimitFilter() ? : '';
if ($this->enable_limit)
$this->sql .= $this->filter->getLimitFilter() ? : '';
} else {
$name = $this->groupby;
$field = $this->getTransQuery($this->groupby);
@@ -144,7 +144,9 @@ class module_report_sqldownload extends module_report_sql implements module_repo
$this->total = $stmt->rowCount();
$stmt->closeCursor();
$this->sql .= $this->filter->getLimitFilter() ? : '';
if ($this->enable_limit)
$this->sql .= $this->filter->getLimitFilter() ? : '';
}
return $this;

View File

@@ -56,7 +56,8 @@ class module_report_sqlquestion extends module_report_sql implements module_repo
$this->total_row = $stmt->rowCount();
$stmt->closeCursor();
$this->sql .= $this->filter->getLimitFilter() ? : '';
if ($this->enable_limit)
$this->sql .= $this->filter->getLimitFilter() ? : '';
} else {
$this->sql = "
SELECT