Controller: Properly reset the default query limit during exports

This commit is contained in:
Johannes Meyer 2024-03-20 16:34:34 +01:00
parent e311d8b9a9
commit 0240cc437d

View file

@ -368,7 +368,10 @@ class Controller extends CompatController
// 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') {