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

Fix GDPR checkbox #25114

Merged
merged 3 commits into from
Sep 28, 2018
Merged

Fix GDPR checkbox #25114

merged 3 commits into from
Sep 28, 2018

Conversation

maddiedierker
Copy link
Contributor

Fixes two very silly mistakes I made:

  • Hides the GDPR checkbox for users that don't need to see it
  • Adds a hidden field data_transfer_agreement_required for users in the EU, which is required by sign_up_params in order to set other GDPR-related required fields (IP, source, and kind)

- if @user.errors[:data_transfer_agreement_accepted].present?
%span.error= t('signup_form.accept_terms')
- if request.gdpr? || request.params['force_in_eu']
= f.hidden_field :data_transfer_agreement_required, value: "1"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

^^ the very important line that was missing before

Copy link
Contributor

@islemaster islemaster left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Thanks for the quick fix! LGTM.

@maddiedierker maddiedierker merged commit 5d84b67 into staging Sep 28, 2018
@maddiedierker maddiedierker deleted the fix-gdpr-checkbox branch September 28, 2018 21:31
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

2 participants