mirror of
https://github.com/flarum/framework.git
synced 2024-12-12 14:13:37 +08:00
Number is a filter, not page param
This commit is contained in:
parent
4817275f4e
commit
9b72a29607
|
@ -78,7 +78,7 @@ class IndexAction extends SerializeCollectionAction
|
||||||
if ($discussionId = $request->get('filter.discussion')) {
|
if ($discussionId = $request->get('filter.discussion')) {
|
||||||
$where['discussion_id'] = $discussionId;
|
$where['discussion_id'] = $discussionId;
|
||||||
}
|
}
|
||||||
if ($number = $request->get('page.number')) {
|
if ($number = $request->get('filter.number')) {
|
||||||
$where['number'] = $number;
|
$where['number'] = $number;
|
||||||
}
|
}
|
||||||
if ($userId = $request->get('filter.user')) {
|
if ($userId = $request->get('filter.user')) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user