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

Afform: Only permit Date fields to be made into a select list if it i… #19665

Merged
merged 1 commit into from
Feb 24, 2021

Conversation

seamuslee001
Copy link
Contributor

…s a search form

Overview

This limits the forms that can have date fields as a select list to just search forms

Before

Any Afform can have a date field as a select list

After

Only search display afforms can have date field as a select list

ping @eileenmcnaughton @colemanw @JoeMurray

@civibot
Copy link

civibot bot commented Feb 24, 2021

(Standard links)

@civibot civibot bot added the master label Feb 24, 2021
@colemanw
Copy link
Member

Test failure unrelated.

This is clever @seamuslee001. That function may or may not need tweaking someday as our metadata models evolve, but since you've encapsulated the logic in a function, that makes it easy to update in the future.

For now, it works and it's an improvement so I'm merging it.

@colemanw colemanw merged commit a6dbcc0 into civicrm:master Feb 24, 2021
@eileenmcnaughton eileenmcnaughton deleted the date_search_select branch February 24, 2021 19:29
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