Skip to content

Commit d0cf9c8

Browse files
authored
Merge pull request #5699 from kenjis/fix-BaseModel-paginate
fix: Model::paginate() missing argument $group
2 parents 661cf16 + e2914da commit d0cf9c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/BaseModel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1076,7 +1076,7 @@ public function paginate(?int $perPage = null, string $group = 'default', ?int $
10761076
$pager = Services::pager(null, null, false);
10771077

10781078
if ($segment) {
1079-
$pager->setSegment($segment);
1079+
$pager->setSegment($segment, $group);
10801080
}
10811081

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

0 commit comments

Comments
 (0)