Skip to content

Commit 70c7263

Browse files
author
Giacomo Fabbian
committed
[GF] Fix resolveCurrentPage()
1 parent ca83a9b commit 70c7263

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Jenssegers/Mongodb/Relations/EmbedsMany.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ protected function associateExisting($model)
273273
*/
274274
public function paginate($perPage = null, $columns = ['*'], $pageName = 'page', $page = null)
275275
{
276-
$page = Paginator::resolveCurrentPage();
276+
$page = $page ?: Paginator::resolveCurrentPage($pageName);
277277
$perPage = $perPage ?: $this->related->getPerPage();
278278

279279
$results = $this->getEmbedded();

0 commit comments

Comments
 (0)