Skip to content

Commit f0f0c8a

Browse files
committed
Fixed maximum 20 mods limit.
Until a solution is found for the pagination.
1 parent eaa82c1 commit f0f0c8a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/Mods/Collection/Filter/ModFilter.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
use CPMDB\Mods\Collection\Indexer\IndexInterface;
1414
use CPMDB\Mods\Collection\Indexer\ModIndex;
1515
use CPMDB\Mods\Mod\ModInfoInterface;
16+
use Loupe\Loupe\SearchParameters;
1617

1718
/**
1819
* Utility class used to search for mods in the collection
@@ -83,6 +84,12 @@ public function getModIDs() : array
8384
return $this->getPrimaryIDs();
8485
}
8586

87+
protected function resolveSearchParams(): SearchParameters
88+
{
89+
return parent::resolveSearchParams()
90+
->withHitsPerPage(500);
91+
}
92+
8693
protected function appendFilters(array &$filters) : void
8794
{
8895

0 commit comments

Comments
 (0)