Skip to content

Commit

Permalink
Merge pull request #8125 from qld-gov-au/github-8124-email-notificati…
Browse files Browse the repository at this point in the history
…ons-checkbox

fix email notifications checkbox
  • Loading branch information
wardi committed Mar 19, 2024
2 parents 81b56c5 + ef07375 commit b0ed536
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changes/8124.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Populate email notification checkbox from the profile it's on, not from the logged-in user
2 changes: 1 addition & 1 deletion ckanext/activity/templates/user/edit_user_form.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

{% block extra_fields %}
{% if h.activity_show_email_notifications() %}
{% call form.checkbox('activity_streams_email_notifications', label=_('Subscribe to notification emails'), id='field-activity-streams-email-notifications', value=True, checked=g.userobj.activity_streams_email_notifications) %}
{% call form.checkbox('activity_streams_email_notifications', label=_('Subscribe to notification emails'), id='field-activity-streams-email-notifications', value=True, checked=data.activity_streams_email_notifications) %}
{% set helper_text = _("You will receive notification emails from {site_title}, e.g. when you have new activities on your dashboard."|string) %}
{{ form.info(helper_text.format(site_title=g.site_title)) }}
{% endcall %}
Expand Down

0 comments on commit b0ed536

Please sign in to comment.