-
-
Notifications
You must be signed in to change notification settings - Fork 824
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
Fixes to Contact Detail report #12772
Fixes to Contact Detail report #12772
Conversation
@pradpnayak the issue occurs only when a hook is in play? Are you able to add a test on this? |
I've worked my way through this & most of the changes are just removing unused cruft. The significant change is not passing the component clauses out to the hook - as they are not used in the main query & can result in fatal errors. I was able to replicate the issue in a test which I will submit. |
test this please |
@pradpnayak test fails are style related. Also, my unit test is merged I think so you could remove the line that skips this report as part of this PR & hence add testing with it |
8de6f8e
to
873ca02
Compare
Thanks @eileenmcnaughton I have pushed the changes. Can you please have a look? |
looks good @pradpnayak |
Overview
selectWhereClause() hook breaks when trying to add clause for contact table.
https://lab.civicrm.org/dev/core/issues/376
Before
DB Error: no such field [nativecode=1054 ** Unknown column 'relationship_civireport.contact_id_a' in 'where clause']"]
After
No DB error
Technical Details