-
-
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
dev/core#1118 correct filteration by case type, re-use parent where() #14827
dev/core#1118 correct filteration by case type, re-use parent where() #14827
Conversation
(Standard links)
|
@deepak-srivastava the test failure relates -
I would say you have exposed the fact that the metadata in the _construct function is not defining 'type' for one or more fields. On the bright side that tells use the report has test cover & I think this can get through without a test if we can get someone to review - maybe @demeritcowboy or @mattwire will once you've got tests passing |
I'm happy to review once the tests pass - I remember the stackexchange post. |
Test case seems to have passed. |
|
Merging based on @demeritcowboy review - note that I agree with the analysis that this is simplifying the code & re-using handling & avoiding reinventing the wheel |
Overview
Applying the case type filter in the case summary report CRM_Report_Form_Case_Summary is resulting in two case types being reported where only one is selected in the case type filter.
Before
After
Technical Details
REGEXP filtering for case type:
Results in records where case type id consists of 5 (for this example).
The clause looks old and appears to be based on assumption that case could be based on multiple case types. Case type however is an integer column and could use where() clause of CRM/Report/Form.php.
Comments
Anything else you would like the reviewer to note