Skip to content
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-20545 - Fix more reports to exclude deleted contacts #11244

Closed
wants to merge 1 commit into from

Conversation

colemanw
Copy link
Member

@colemanw colemanw commented Nov 6, 2017

@eileenmcnaughton
Copy link
Contributor

I tested this on the Contribution Detail report & the is_deleted filter was added which I think makes sense (I think an argument could be made against it but it's probably a bit obscure & not that strong) but the is_deceased filter was also applied and I don't think that makes sense for contributions - ie. we still got their money. I'm kinda inclined to bring across the methodology from the ExtendedReport extension here - which has a getColumns function which then grabs & filters the metadata relating to entities. (the function being used here was originally ported from that extension but has altered a little since I think)

@colemanw
Copy link
Member Author

Ah good catch. You're right we shouldn't exclude deceased contacts from (probably most) reports.

@eileenmcnaughton
Copy link
Contributor

I put up the extended reports approach as an alternate (just for one report + the ones that don't use it) - it seems wordy since it adds a few functions, but I've been slowly developing the approach over quite a period & it has been allowing me to tidy up the individual reports in extended reports

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants