-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
Bug: X-Pagination-Total-Count is always 0 #20055
Comments
some problem |
Should be covered by a new test also. |
lav45
added a commit
to lav45/yii2
that referenced
this issue
Nov 17, 2023
Looks like it was caused by this commit: Pagination headers are now set before prepareModels() is called, which is the trigger to calculate the total count |
terabytesoftw
added a commit
to terabytesoftw/yii2
that referenced
this issue
Jul 9, 2024
…nt is always 0". This reverts commit 90c0eb0.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
After this commit #3014fa2 X-Pagination-Total-Count header is always 0. So it breaks pagination. I believe it happens because pagination headers are set before real totalCount calculated.
What steps will reproduce the problem?
Any /index GET queries returns X-Pagination-Total-Count=0
What is the expected result?
Total Count of models
What do you get instead?
0
The text was updated successfully, but these errors were encountered: