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

Fix fatal on topDonor report #11919

Merged
merged 1 commit into from
Apr 2, 2018
Merged

Conversation

eileenmcnaughton
Copy link
Contributor

Overview

Fix fatal error when loading the topDonor report

Before

Fatal error

After

No fatal error

Technical Details

This is the same underlying issue as #11917 - ie. the way in which the total amount field was getting into the full groupBy was by accident rather than by design.

I have made it possible to add 'required' 'no_display' group fields. Note the the 'large change' is just the removal of an 'if' so it iterates through looking for required fields.

Comments

There was an test on the report instances that was previously disabled for this report as it fatalled but with this patch I am able to stop skipping it.

I also quashed the groupBys on the address fields as they don't work & were not added intentionally. The order bys don't work either but that seems older and does not just affect address fields.

@yashodha this is the bug you found

@yashodha
Copy link
Contributor

yashodha commented Apr 2, 2018

@eileenmcnaughton : Top report yeilds results as expected, add to group also work fine.

@eileenmcnaughton
Copy link
Contributor Author

test fail unrelated. Merging based on @yashodha testing

@eileenmcnaughton eileenmcnaughton merged commit 5319c68 into civicrm:5.0 Apr 2, 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.

3 participants