Skip to content

Commit 0240cc4

Browse files
committed
Controller: Properly reset the default query limit during exports
1 parent e311d8b commit 0240cc4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

library/Icingadb/Web/Controller.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,10 @@ public function export(Query ...$queries)
368368

369369
// No matter the format, a limit should only apply if set
370370
if ($this->format !== null) {
371-
$query->limit(Url::fromRequest()->getParam('limit'));
371+
if (! Url::fromRequest()->hasParam('limit')) {
372+
$query->limit(null)
373+
->offset(null);
374+
}
372375
}
373376

374377
if ($this->format === 'json' || $this->format === 'csv') {

0 commit comments

Comments
 (0)