diff --git a/src/eZ/ContentView/QueryResultsInjector.php b/src/eZ/ContentView/QueryResultsInjector.php index 2a1b2dc..f549c28 100644 --- a/src/eZ/ContentView/QueryResultsInjector.php +++ b/src/eZ/ContentView/QueryResultsInjector.php @@ -50,7 +50,7 @@ public function injectQueryResults(FilterViewParametersEvent $event) if ($viewType === $this->views['field']) { $parameters = [ - 'itemViewType' => $this->views['item'], + 'itemViewType' => $event->getBuilderParameters()['itemViewType'] ?? $this->views['item'], 'items' => $this->buildResults($event), ]; $parameters['isPaginationEnabled'] = ($parameters['items'] instanceof Pagerfanta);