Skip to content

Commit

Permalink
Merge pull request #5699 from kenjis/fix-BaseModel-paginate
Browse files Browse the repository at this point in the history
fix: Model::paginate() missing argument $group
  • Loading branch information
kenjis authored Feb 22, 2022
2 parents 661cf16 + e2914da commit d0cf9c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/BaseModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -1076,7 +1076,7 @@ public function paginate(?int $perPage = null, string $group = 'default', ?int $
$pager = Services::pager(null, null, false);

if ($segment) {
$pager->setSegment($segment);
$pager->setSegment($segment, $group);
}

$page = $page >= 1 ? $page : $pager->getCurrentPage($group);
Expand Down

0 comments on commit d0cf9c8

Please sign in to comment.