-
-
Notifications
You must be signed in to change notification settings - Fork 814
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
CRM-21852-Membership report failure fix #11948
Conversation
Can one of the admins verify this patch? |
Jenkins ok to test |
Great first PR - nice clear PR explanation with images. Jenkins has reported some style warnings - which are probably whitespace issues - see https://www.drupal.org/docs/develop/standards/coding-standards for the drupal standards which we follow 2 questions
|
I will re-write the code for style issue and resubmit it. |
https://issues.civicrm.org/jira/browse/CRM-21852, JIRA ticket number, fyi |
@seenu4043 I just did some tests. This works but it works for me without moving the
It also worked for me if I just removed this
From CRM_Report_Form_Member_Detail - I'm wondering why that didn't work for you? (removing redundant code is the nicest fix :-) |
@seenu4043 did you see above - just wanting to understand why removing the whole function didn't work for you? I'm a bit uncomfortable with the re-ordering |
Closing as Seamus reviewed alternate fix & now merged |
Overview
Membership detail report error when ACL used (disable view all contacts)
Before
When a restricted user accesses the Membership Detail Form, an error is thrown.
After
When a restricted user accesses the Membership Detail Form, the report should be displayed.
Technical Details
buildACLClause has been used twice so I Just commented one as it's taking care in buildQuery, also buildPermissionClause has been used as it overriding buildQuery since buildQuery is deprecated(see in code)
Comments
As this is the fist time am writing code for Civicrm so I would appreciate if you could provide me feedback to improve myself better