From 0240cc437dbff87880075ad8ce52a805b1ec791c Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Wed, 20 Mar 2024 16:34:34 +0100 Subject: [PATCH] Controller: Properly reset the default query limit during exports --- library/Icingadb/Web/Controller.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/library/Icingadb/Web/Controller.php b/library/Icingadb/Web/Controller.php index aa083a70a..ffa711ac8 100644 --- a/library/Icingadb/Web/Controller.php +++ b/library/Icingadb/Web/Controller.php @@ -368,7 +368,10 @@ public function export(Query ...$queries) // No matter the format, a limit should only apply if set if ($this->format !== null) { - $query->limit(Url::fromRequest()->getParam('limit')); + if (! Url::fromRequest()->hasParam('limit')) { + $query->limit(null) + ->offset(null); + } } if ($this->format === 'json' || $this->format === 'csv') {