-
-
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
Added relationship active filter in CiviCRM Case reports. #12711
Conversation
Can one of the admins verify this patch? |
(Standard links)
|
@civicrm-builder add to whitelist |
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.
I've reviewed and tested this and it works as described. Agree it's a good bug fix. @jusfreeman do you have a sec to update with my nitpicks?
6a260de
to
742749c
Compare
@colemanw thanks for the review, We've updated the PR as required. |
@colemanw @eileenmcnaughton just a friendly ping to see if there was any other changes required for this PR prior to acceptance? |
@colemanw this is marked 'needs changes' by you but I believe those changes have been made |
Comments have been addressed
test this please |
Overview
CiviCRM's Case Reports are showing Cases in the report results even when a Contact has been removed from a Case Role. This is problem can be replicated on CiviCRM's Case Summary Report and Case Detail Report.
Investigation showed that there was no way to filter for the is_active flag on the role / relationship, and the reports do not currently check this field.
Solution is to add this field as a filter criteria to the reports in CiviCRM Core.
Before
Relationships which are inactive or active are included in the report results, which can cause confusion as previous Staff previously assigned Case Roles are still being listed. There is no filter available to remove inactive relationships to the Case.
This greatly reduces the usefulness of the report because it lists both Staff that are working on a Case and those that are no longer working on the Case in the same listing with no clear identification of each state.
After
An "Active Relationship?" filter has been added to the report which defaults to "Yes". Such that only relationships which are active are included in the report. Staff members assigned a Case Role will be listed. Staff members that are no longer assigned a Case Role will not be listed.
Technical Details
"Active Relationship?" filter has been added to the report which defaults to "Yes".
Comments
With the default being "Yes" to "Active Relationship?", previous report results for the Case Summary Report and Case Detail Report will change with this patch applied.
Ref: CIVICRM-965