-
-
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
Fix for #1573: Extra columns for Contribution Detail report. #16458
Fix for #1573: Extra columns for Contribution Detail report. #16458
Conversation
(Standard links)
|
@twomice don't we have a helper function that adds these fields in other reports? |
@eileenmcnaughton Do we? Happy to use that, but where would I find it? |
check |
Thanks @eileenmcnaughton
So, do you prefer that I use the approach in "1" and "2" above? |
In general we have been moving that way - it doesn't really make sense to have some fields available on some reports & not others |
@eileenmcnaughton Okay, I'll give that a go. |
9e84aef
to
b352745
Compare
@eileenmcnaughton Thanks for the help. Turns out 'employer' already exists in the report, 'location type' is easy with getColumns('Address'), and 'communication method' is the only one we really had to had code for. However, I've got a bunch of whitespace-only changes in the PR now. Do you have a recommendation for improving that? |
@twomice so a reviewer can look at it with https://github.com/civicrm/civicrm-core/pull/16458/files?w=1 to exclude those. Any reason not to add communication_preferences to the helper fn - it seems if it's useful here it would be useful on other reports too |
b352745
to
74b8bdf
Compare
@eileenmcnaughton Good call on that helper function. That's done now. FYI, I intentionally set 'false' -for Further suggestions? |
Code all looks good now |
Darn, got some failing tests. Fixing ... |
74b8bdf
to
1754f22
Compare
@eileenmcnaughton There's one failing test but it appears to be unrelated. Would you agree, and is there anything otherwise that needs doing before merge? |
test this please |
agree it looks unrelated |
I gave this a spin & the new fields show & render correctly. I didn't spot any issues - merging |
Thanks, @eileenmcnaughton ! |
Overview
This creates new columns for the report: Employer, Location Type, and Preferred Communication Method
Before
These columns are not available in the report.
After
The columns are available.
Technical Details
No changes are made to the (admittedly complex) existing logic of this report. We're just adding new information about entities that are already clearly defined in the report.
Comments
None.