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

CRM-21809: 'Advance search' group by issue #11728

Merged
merged 1 commit into from
Feb 27, 2018

Conversation

monishdeb
Copy link
Member

@monishdeb monishdeb commented Feb 27, 2018

Overview

Steps to replicate:

  1. Ensure that MySQL FULL_GROUP_BY_MODE is enabled
  2. Go to Advanced Search and choose any activity type
  3. Then go for 'Search'

Before

Row count doesn't match with actual listed records.
screen shot 2018-02-27 at 6 52 52 pm

After

Row count match with actual listed records.
screen shot 2018-02-27 at 6 50 21 pm

Technical Details

This patch has as an additional improvement - ignore IF(...) other then aggregate functions as such columns are not necessary to be added in GROUP BY clause.


@monishdeb
Copy link
Member Author

ping @lcdservices

@lcdservices
Copy link
Contributor

This looks good. The advanced search is now returning the correct count of rows. Altering the row count and pagination is working properly as well.

@eileenmcnaughton
Copy link
Contributor

I'm happy to merge this based on @lcdservices testing

@eileenmcnaughton eileenmcnaughton merged commit 960fbd5 into civicrm:master Feb 27, 2018
@monishdeb monishdeb deleted the CRM-21809 branch February 28, 2018 11:11
@mlutfy mlutfy added this to the 4.7.32 milestone Mar 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants