-
-
Notifications
You must be signed in to change notification settings - Fork 825
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
Fixed fatal error 'DB Error: no such field' on Contribution detail re… #12660
Conversation
(Standard links)
|
We should get a test on this (in the api_v3_ReportTemplateTest class) because we are in whackamole territory once we start dealing with aliases The alias is set higher up $tableAlias = $options['prefix'] . 'contact'; so perhaps it changes there? |
Sure @eileenmcnaughton will push test for this in a day or two. Yes the $tableAlias is set but the actual alias that is used in query is set after in setTableAlias() which appends '_civireport'. |
thanks @pradpnayak I kinda feel like fixing the order might be the right fix then - but as long as we have a test we can improve the fix later if we want |
@pradpnayak this test covers is
But it also incorporates https://lab.civicrm.org/dev/core/issues/326 |
I'm going to merge this (as it works) on the hope the test comes through in @twomice fix that largely relates |
…port
Overview
Contribution Details report throw 'DB Error: no such field' error when 'Age' field under columns is selected.
https://lab.civicrm.org/dev/core/issues/325
Before
After