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

dev/financial#72 Filter contribution status dropdowns in search and report #15470

Merged
merged 1 commit into from
Oct 13, 2019

Conversation

ejegg
Copy link
Contributor

@ejegg ejegg commented Oct 9, 2019

Replacing pseudoConstant calls. In search and reporting, use BAO
buildOptions with 'search' context.

This commit is only intended to touch places where we are building
a list of options to offer to the user, not places where we are
displaying results.

Overview

Uses a higher-level function to create the options for the Contribution Status dropdowns so that we can filter by context.

Before

Contribution Status dropdowns will show all statuses, regardless of whether they make sense.

After

Contribution Status dropdowns are filtered to the appropriate context. For search and reporting, all existing statuses are still displayed, but the proposed 'Template' status can be easily filtered out.

Technical Details

Comments

Anything else you would like the reviewer to note

@civibot
Copy link

civibot bot commented Oct 9, 2019

(Standard links)

@civibot civibot bot added the master label Oct 9, 2019
@ejegg ejegg force-pushed the filterContribStatus branch 5 times, most recently from 60f3434 to 9228c02 Compare October 9, 2019 17:25
Replacing pseudoConstant calls with BAO buildOptions in 'search'
context.

This commit is only intended to touch places where we are building
a list of options to offer to the user, not places where we are
displaying results.

In practice this doesn't remove any currently available statuses,
but now we can filter our the proposed 'Template' status.
@ejegg ejegg force-pushed the filterContribStatus branch from 9228c02 to c0aaecf Compare October 9, 2019 17:33
@ejegg ejegg changed the title Contribution status dropdowns: filter by context dev/financial#72 Filter contribution status dropdowns in search and report Oct 9, 2019
@mattwire
Copy link
Contributor

Thanks @ejegg

@mattwire mattwire merged commit e5d6b17 into civicrm:master Oct 13, 2019
@ejegg ejegg deleted the filterContribStatus branch October 15, 2019 15:46
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.

2 participants