-
Notifications
You must be signed in to change notification settings - Fork 28
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
Wrong Element count when using with Association #60
Comments
Any news on that? Could you identify the latest version without the problem? |
hi, |
Hi, thank you. |
Using
I don't know how to fix this, I hope someone with more experience will have a look. |
I believe the test suite covers this issue, but it does not currently test anything after Rails 5.2.0.
|
for a quick fix (maybe more a hack ;-) ), I'm using a grouping on 'id'.
but in my case I have to remove strict sql_mode, since I don't want a group for all joins. You can do this by setting it in the database.yml
Maybe this helps someone... still looking for a better solution. |
Maybe this commit could fix this problem: kreintjes@e3006b3 |
Hi,
when I use the associations I get a wrong count of items in my table. I attached a Screenshot which shows an example of my list. There you have multiple households with associated users. In total there are 16 households and pagination should show 20 per page.
So you should see all of the items, but it shows only 7 items. The reason must be that it doesn't shows distinct households and instead just filters them.
I'm not sure how to explain it in simple words. But I think you will see it on the screenshots.
Not sure if this is a problem of wice_grid or kaminari. In older versions this was working correctly.
Any help appreciated.
The text was updated successfully, but these errors were encountered: