avoid projects being displayed twice

pull/9089/head
ulferts 4 years ago
parent e93626b4c7
commit a7835ac072
No known key found for this signature in database
GPG Key ID: A205708DE1284017
  1. 2
      app/views/users/_mail_notifications.html.erb

@ -53,7 +53,7 @@ See docs/COPYRIGHT.rdoc for more details.
<section class="hide-section" data-section-name="notified_projects" <%= @user.mail_notification == 'selected' ? '' : 'hidden' %>> <section class="hide-section" data-section-name="notified_projects" <%= @user.mail_notification == 'selected' ? '' : 'hidden' %>>
<div id="notified-projects" class="form--field -no-label"> <div id="notified-projects" class="form--field -no-label">
<div class="form--field-container -vertical"> <div class="form--field-container -vertical">
<% @user.projects.each do |project| %> <% @user.projects.distinct.each do |project| %>
<label class="form--label-with-check-box"> <label class="form--label-with-check-box">
<%= styled_check_box_tag 'notified_project_ids[]', <%= styled_check_box_tag 'notified_project_ids[]',
project.id, project.id,

Loading…
Cancel
Save