Fix: enable custom donor columns in csv export #7421
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.
Resolves: GIVE-923
#7398
Description
This pull request enables the filtering of the donor export csv columns. In the past, users could introduce custom columns via the
give_export_donors_get_default_columns
filter in the previous Donor export class. This filter was utilized in two methods:Displaying Custom Columns on the Tools Page: One method would display the custom columns on the donor export section of the tools page to be checked.
Merging Custom Columns with Export Data: A second method, which incorporated custom columns into the export data.
By reintroducing this functionality in the new Donor export class, users can once again add custom donor information to the csv exports.
Affects
Donor Column Export
Visuals
Testing Instructions
Example:
Pre-review Checklist
@unreleased
tags included in DocBlocks