filter current employer report by all groups #12643
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Code only filtered by static groups before.
https://lab.civicrm.org/dev/core/issues/320
Overview
Update the current Employer report so you can filter by all groups, not just static groups.
Before
Previously, the only groups listed in the Filter tab, Group field are static groups. You can't filter the report by smart groups.
After
You can filter by all groups.
Technical Details
The old code included a stanza for the group filter which specified the options using
CRM_Core_PseudoConstant::staticGroup()
. The new code eliminates the stanza and sets _groupFilter = TRUE;