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..79697e8 100644 --- a/src/bundle/Resources/config/default_settings.yaml +++ b/src/bundle/Resources/config/default_settings.yaml @@ -1,7 +1,7 @@ parameters: - ezsettings.site.pagination.search_limit: 10 + ezsettings.default.search.pagination.limit: 10 - ezsettings.site.search_view: + ezsettings.site_group.search_view: full: default: template: "@@ezdesign/search/index.html.twig" diff --git a/src/lib/View/SearchViewFilter.php b/src/lib/View/SearchViewFilter.php index 4ca8f30..74ae181 100644 --- a/src/lib/View/SearchViewFilter.php +++ b/src/lib/View/SearchViewFilter.php @@ -73,7 +73,7 @@ public function handleSearchForm(FilterViewBuilderParametersEvent $event): void $request = $event->getRequest(); $search = $request->query->get('search'); - $limit = isset($search['limit']) ? (int)$search['limit'] : $this->configResolver->getParameter('pagination.search_limit'); + $limit = isset($search['limit']) ? (int)$search['limit'] : $this->configResolver->getParameter('search.pagination.limit'); $page = isset($search['page']) ? (int)$search['page'] : 1; $query = $search['query'] ?? ''; $section = null;