Skip to content

Commit

Permalink
Fix config max_results in embedded_lists
Browse files Browse the repository at this point in the history
  • Loading branch information
alterphp committed Apr 26, 2022
1 parent babf948 commit 515866b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controller/MongoOdmEasyAdminController.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ protected function embeddedListAction()
$paginator = $this->mongoOdmFindAll(
$this->document['class'],
$this->request->query->get('page', 1),
$this->config['list']['max_results'] ?: 25,
$this->document['list']['max_results'],
$this->request->query->get('sortField'),
$this->request->query->get('sortDirection')
);
Expand Down

0 comments on commit 515866b

Please sign in to comment.