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

Volunteer: fix unsubscribe for users without email preference #26115

Merged
merged 2 commits into from
Nov 19, 2018

Conversation

breville
Copy link
Member

@breville breville commented Nov 15, 2018

Users who had volunteered before we added the email preference weren't able to modify subscription preferences because the server was enforcing a requirement that there be an email preference.

This adds the email preference dropdown to the "Update email preferences" UI.

screenshot 2018-11-18 12 45 42

It's not mandatory if the user already has an email preference, but if they don't, submitting the form will give an error that a value needs to be provided.

screenshot 2018-11-16 08 57 52

(Also, the red asterisk next to email preference is only shown if we don't already have one on record.)

This is similar to the 18+ fix made in #14622.

Also made a couple small fixes to /volunteer/local: when contacting a volunteer, the initiating user's age_18_plus_b value is now written properly in the VolunteerContact2015 form, and fields highlighted for errors are returned to normal when the form is submitted successfully.

Users who had volunteered before we added the email preference weren't able to modify subscription preferences because the server was enforcing a requirement that there be an emai preference.

This adds the email preference dropdown to the "Update email preferences" UI.  It's not mandatory if the user already has an email preference, but if they don't, submitting the form will give an error that a value needs to be provided.
@breville
Copy link
Member Author

Note that the dropdown doesn't currently show the existing email preference on either of the dropdowns on this page.

@tanyaparker
Copy link
Contributor

Not related to your PR, but I'm wondering if we can fix while we're in here. The 18+ checkbox should have a red asterisk.

image

@tanyaparker
Copy link
Contributor

If the email dropdown isn't required, then it shouldn't have the red asterisk.

When adjusting volunteer subscription preference, a red asterisk is now always shown by the 18+ option.  Also, if there isn't already an email preference, a red asterisk is shown by that choice too.
@islemaster islemaster merged commit 9e157b5 into staging Nov 19, 2018
@breville breville deleted the volunteer-fix-unsubscribe branch January 24, 2019 02:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants