-
-
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
report#24 - Case Detail report - fix 'Active role?' when no relationships #15972
Conversation
(Standard links)
|
ping @demeritcowboy @alifrumin |
Jenkins re test this please |
I can give it a spin. The case detail report has the problem but the case summary one seems like it was updated a while ago to allow "neither" and I can't reproduce on the summary report even with a case that has no relationships, but anyway it makes sense to standardize the code in both. |
It's good just have two easily fixable things.
|
Actually the function call thing is probably a micro-optimization that's not necessary but the line in the detail report does need updating. |
@aydun Do you think similar changes need to be made in other reports as well for deleted contacts ? |
…hips Change 'Active Role?' to use the default behaviour for CRM_Utils_Type::T_BOOLEAN and allow 'Any' Change 'Is deleted?' to use standard CRM_Utils_Type::T_BOOLEAN
Thanks for testing @demeritcowboy I've changed the description to only report an issue in the Detail report. The default behaviour for CRM_Utils_Type::T_BOOLEAN is ok, except that the reports were overriding some of that. This simpler version uses the defaults and also avoids rewriting the 'is_deleted'. @yashodha - no, the revised changes bring this more into line with other reports. |
Looks good! It just creates one minor visual change in the output from before, but as noted above it's consistent with BOOLEAN in other reports.
|
@yashodha or anyone are there any issues - this seems good to go? |
@demeritcowboy Looks good, I am happy to merge. |
Overview
The 'Active Role?' filter assumes relationships will exist and wrongly excludes them
Before
The 'Active Role?' filter only offers 'Yes' or 'No' - but both options exclude cases without relationships.
After
The 'Active Role?' filter offers 'Yes', 'No' or 'Any' - 'Yes' & 'No' operate as before when relationships exist. 'Any' does not exclude cases where no relationships exist.
Technical Details
Changes 'Active Role?' and 'Is Deleted?' to use default behaviour for booleans.
Comments
https://lab.civicrm.org/dev/report/issues/24