From 7204433f5e6643ec9f2dfbb4e7a21e5a53a1eac5 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Tue, 19 May 2020 12:27:24 +0200 Subject: [PATCH] ServicesController: Preserve limit, sort and view params when filtering --- application/controllers/ServicesController.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/application/controllers/ServicesController.php b/application/controllers/ServicesController.php index bff08b19..4f79fb03 100644 --- a/application/controllers/ServicesController.php +++ b/application/controllers/ServicesController.php @@ -56,7 +56,11 @@ class ServicesController extends Controller ] ); $viewModeSwitcher = $this->createViewModeSwitcher(); - $filterControl = $this->createFilterControl($services); + $filterControl = $this->createFilterControl($services, [ + $limitControl->getLimitParam(), + $sortControl->getSortParam(), + $viewModeSwitcher->getViewModeParam() + ]); $services->peekAhead($compact);