From dab24db54987af9a788fed788f5c6cfd9847f3e6 Mon Sep 17 00:00:00 2001 From: Kamil Madejski Date: Mon, 26 Oct 2020 16:02:45 +0100 Subject: [PATCH] EZP-32105: Use search.pagination.limit parameter instead of obsolete pagination.search_limit --- src/bundle/Form/Type/SearchType.php | 2 +- src/bundle/Resources/config/default_settings.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bundle/Form/Type/SearchType.php b/src/bundle/Form/Type/SearchType.php index 6a8bde6..76ae130 100644 --- a/src/bundle/Form/Type/SearchType.php +++ b/src/bundle/Form/Type/SearchType.php @@ -45,7 +45,7 @@ public function buildForm(FormBuilderInterface $builder, array $options) ->add('query', CoreSearchType::class, ['required' => false]) ->add('page', HiddenType::class, ['empty_data' => 1]) ->add('limit', HiddenType::class, [ - 'empty_data' => $this->configResolver->getParameter('pagination.search_limit'), + 'empty_data' => $this->configResolver->getParameter('search.pagination.limit'), ]) ->add('content_types', ContentTypeChoiceType::class, [ 'multiple' => true, diff --git a/src/bundle/Resources/config/default_settings.yaml b/src/bundle/Resources/config/default_settings.yaml index 1a773c0..939e0fc 100644 --- a/src/bundle/Resources/config/default_settings.yaml +++ b/src/bundle/Resources/config/default_settings.yaml @@ -1,5 +1,5 @@ parameters: - ezsettings.site.pagination.search_limit: 10 + ezsettings.default.search.pagination.limit: 10 ezsettings.site.search_view: full: