Commit 70c72634 authored by Giacomo Fabbian's avatar Giacomo Fabbian

[GF] Fix resolveCurrentPage()

parent ca83a9b8
......@@ -273,7 +273,7 @@ class EmbedsMany extends EmbedsOneOrMany
*/
public function paginate($perPage = null, $columns = ['*'], $pageName = 'page', $page = null)
{
$page = Paginator::resolveCurrentPage();
$page = $page ?: Paginator::resolveCurrentPage($pageName);
$perPage = $perPage ?: $this->related->getPerPage();
$results = $this->getEmbedded();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment