Update notified_project_ids while saving record.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11840 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2013-05-13 17:11:38 +00:00
parent 10ed306b19
commit 4a59b869c0
5 changed files with 22 additions and 16 deletions
+2 -1
View File
@@ -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 %>