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

dev/report#68 Fix smart group crash when ordering by aggregated column #20610

Merged
merged 1 commit into from
Jun 16, 2021

Conversation

colemanw
Copy link
Member

Overview

Fixes https://lab.civicrm.org/dev/report/-/issues/68

Before

SearchKit can crash smart groups when ordering by an aggregated column.

After

Fixed.

Technical Details

The smart group query removes everything from the SELECT clause, removing calculated fields which may be used by ORDER BY clause.

@civibot
Copy link

civibot bot commented Jun 15, 2021

(Standard links)

@civibot civibot bot added the master label Jun 15, 2021
@eileenmcnaughton
Copy link
Contributor

@colemanw this should be against the rc shouldn't it? Sounds like a regression or possibly an 'arguably regression'

@colemanw colemanw changed the base branch from master to 5.39 June 16, 2021 18:33
@civibot civibot bot added 5.39 and removed master labels Jun 16, 2021
@colemanw
Copy link
Member Author

Ok I've rebased for the RC. Marking MOP based on review in gitlab.

@seamuslee001 seamuslee001 merged commit 2fde1dc into civicrm:5.39 Jun 16, 2021
@seamuslee001 seamuslee001 deleted the fixApiOrder branch June 16, 2021 23:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants