Skip to content

Commit

Permalink
set missing search criteria
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-kl1 committed May 18, 2021
1 parent fa4a428 commit 14ca42a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Model/DocumentRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ public function getList(SearchCriteriaInterface $searchCriteria): SearchResultsI

/** @var DocumentSearchResultsInterface $searchResults */
$searchResults = $this->searchResultsFactory->create();
$searchResults->setSearchCriteria($searchCriteria);
$searchResults->setItems($collection->getItems());
$searchResults->setTotalCount($collection->getSize());

Expand Down

0 comments on commit 14ca42a

Please sign in to comment.