-
-
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
Pagination::totalCount initialized incorrectly #16891
Labels
Milestone
Comments
taobig
changed the title
Pagination totalCount initialized incorrectly
Pagination::totalCount initialized incorrectly
Nov 16, 2018
cebe
added
status:to be verified
Needs to be reproduced and validated.
type:bug
Bug
labels
Nov 16, 2018
Yes. That's how it is currently. Any idea on how to fix it? |
taobig
added a commit
to taobig/yii2
that referenced
this issue
Dec 8, 2018
samdark
pushed a commit
that referenced
this issue
Jan 1, 2019
@GHopperMSK would you please check regression that's caused by solving this task? yiisoft/yii2-elasticsearch#201 Thanks! |
Closed
Fixed in in ElasticSearch. Probably a good idea to release it first. |
samdark
added a commit
that referenced
this issue
Feb 22, 2019
samdark
added a commit
that referenced
this issue
Feb 22, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What steps will reproduce the problem?
What is the expected result?
$dataProvider->pagination->page == $_GET['page']
What do you get instead?
$dataProvider->pagination->page;//always 0
Additional info
correct code:
or
I found yii\data\Pagination::getPageCount() to use
totalCount
without initialized.The text was updated successfully, but these errors were encountered: