summaryrefslogtreecommitdiffstats
path: root/app/views/users/_mail_notifications.html.erb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2013-05-13 17:11:38 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2013-05-13 17:11:38 +0000
commit4a59b869c04ed3188e1d2de3b9f1879ee3876dec (patch)
tree8086a4033825feb3611051d871f5d3d72f648855 /app/views/users/_mail_notifications.html.erb
parent10ed306b1935834afa1aad304f1ee5c21cc807d1 (diff)
downloadredmine-4a59b869c04ed3188e1d2de3b9f1879ee3876dec.tar.gz
redmine-4a59b869c04ed3188e1d2de3b9f1879ee3876dec.zip
Update notified_project_ids while saving record.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11840 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/users/_mail_notifications.html.erb')
-rw-r--r--app/views/users/_mail_notifications.html.erb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/views/users/_mail_notifications.html.erb b/app/views/users/_mail_notifications.html.erb
index a31f6304b..51024fb9a 100644
--- a/app/views/users/_mail_notifications.html.erb
+++ b/app/views/users/_mail_notifications.html.erb
@@ -11,12 +11,13 @@
<%= render_project_nested_lists(@user.projects) do |project|
content_tag('label',
check_box_tag(
- 'notified_project_ids[]',
+ 'user[notified_project_ids][]',
project.id,
@user.notified_projects_ids.include?(project.id)
) + ' ' + h(project.name)
)
end %>
+ <%= hidden_field_tag 'user[notified_project_ids][]', '' %>
<p><em class="info"><%= l(:text_user_mail_option) %></em></p>
<% end %>