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

Use min age to participate setting on verification residence form #3399

Merged
merged 1 commit into from
Mar 22, 2019

Conversation

decabeza
Copy link
Collaborator

References

This a backport of part of AyuntamientoMadrid#1917

Objectives

Use Setting["min_age_to_participate"] on verification residence form. Before, the form was using hardcoded 16 value for birthdate field on verification residence form:

start_year: 1900, end_year: 16.years.ago.year

Now uses the setting:

start_year: 1900, end_year: minimum_required_age.years.ago.year
def minimum_required_age
  (Setting["min_age_to_participate"] || 16).to_i
end

@decabeza decabeza merged commit ecd4a8a into master Mar 22, 2019
@decabeza decabeza deleted the min-age-to-participate branch March 22, 2019 16:09
@decabeza decabeza added this to Release 0.20 in Roadmap Mar 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants