Skip to content
This repository was archived by the owner on Dec 19, 2019. It is now read-only.

Commit eb62681

Browse files
authored
Merge pull request #1 from textarea/textarea-patch-1
Missing setTotalCount on $searchResults object in getList method
2 parents f77f96b + 0a2330a commit eb62681

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Vault/Model/PaymentTokenRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public function getList(\Magento\Framework\Api\SearchCriteriaInterface $searchCr
9999
$searchResults = $this->searchResultsFactory->create();
100100
$searchResults->setSearchCriteria($searchCriteria);
101101
$searchResults->setItems($collection->getItems());
102-
102+
$searchResults->setTotalCount($collection->getSize());
103103
return $searchResults;
104104
}
105105

0 commit comments

Comments
 (0)