Skip to content
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

Filtering when "allow_multiple_selection" enabled #32

Open
xdm opened this issue Sep 23, 2012 · 2 comments
Open

Filtering when "allow_multiple_selection" enabled #32

xdm opened this issue Sep 23, 2012 · 2 comments
Labels

Comments

@xdm
Copy link

xdm commented Sep 23, 2012

LEFT JOIN causes wrong entries count ( it is obvious, when you join one-to-many table)

I fixed this problem using "SELECT DISTINCT" in entry manager, even their is no grouping

SELECT count(".($group ? 'DISTINCT ' : 'DISTINCT')."e.id) as count

@brendo
Copy link
Member

brendo commented Oct 11, 2012

@klaftertief, this seems familiar. Was this something you fixed while we were in Cologne?

@klaftertief
Copy link

Sounds familiar, yep. But it was for the select field, which didn't implement the requiresSQLGrouping(). The SBL implements it, and I couldn't reproduce the issue. The query should have a DISTINCT when the allow_multiple_selection is set.

@xdm, ehat version of the SBL are you using and how does your DS and filter look like?

@nitriques nitriques added the bug label Jun 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants