-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Check MaxPageSize before using PageSize throughout the code #12269
Comments
So, So maybe |
@jtkech Why would we want to check |
Because we init the pager |
@jtkech I get that, but in that case we just render all the items on 1 page. Are you saying having |
Yes I think you're right, in that case it will render a List of items without the pager.
No because this is in that case that the pager is used. So looks good but maybe check what the pagerShape code does with pagerSize and TotalItemCount. |
Yes I already checked.
MaxPagedCount is not needed
|
Okay cool then |
Describe the bug
The only place we check against
MaxPageSize
in onOC.Contents.AdminController
The logic should be
I suggest we create
GetPageSize()
method that looks like this and use irt instead of usingPageSize
propertyAlso, something went wrong with recent merge where these 2 code blocks were added instead of replacing the second block
The text was updated successfully, but these errors were encountered: