-
-
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
Switch to non deprecated buildPermissionClause() for contact summary report #20287
Switch to non deprecated buildPermissionClause() for contact summary report #20287
Conversation
(Standard links)
|
CRM/Report/Form/Contact/Summary.php
Outdated
// get the acl clauses built before we assemble the query | ||
$this->buildACLClause($this->_aliases['civicrm_contact']); | ||
|
||
$this->buildPermissionClause(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like this gets called already from buildQuery() right below? If you just remove the line does that fix the problem?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are right. It works just removing the buildACLClause line
4f40f5f
to
514feb6
Compare
This looks correct to me - I'll leave to you to merge when you are happy with it @demeritcowboy |
I took a quick look & there are several reports still with this - the Contact/Detail one looks almost identical to this |
|
And you're right the constituent detail seems to have the same duplicate problem. There is also a separate problem with the constituent summary if you use force=1 but ... sigh. |
Overview
Swap deprecated
buildACLClause()
for non-deprecatedbuildPermissionClause()
. On a site using ACLs restricted users were seeing multiple duplicates when refreshing the report - this was caused by the INNER JOIN on thecivicrm_acl_contact_cache
that was being added and is not required.Before
Duplicates for users using ACLs when refreshing the report.
After
No duplicates.
Technical Details
Described above.
Comments