Skip to content

Commit

Permalink
Fix EZP-31677: pass the itemViewType parameter to the inner view temp…
Browse files Browse the repository at this point in the history
…late
  • Loading branch information
Bertrand Dunogier committed Jun 8, 2020
1 parent a9ff4fd commit 32a43d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/eZ/ContentView/QueryResultsInjector.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 32a43d4

Please sign in to comment.