Skip to content

Commit

Permalink
EZP-32105: Use search.pagination.limit parameter instead of obsolete …
Browse files Browse the repository at this point in the history
…pagination.search_limit
  • Loading branch information
kmadejski committed Oct 26, 2020
1 parent 4a40299 commit dab24db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/bundle/Form/Type/SearchType.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/bundle/Resources/config/default_settings.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
parameters:
ezsettings.site.pagination.search_limit: 10
ezsettings.default.search.pagination.limit: 10

ezsettings.site.search_view:
full:
Expand Down

0 comments on commit dab24db

Please sign in to comment.