Don't generate duplicate ids.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11344 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2013-02-10 16:41:26 +00:00
parent deffd81ada
commit 01a7c34828
1 changed files with 1 additions and 1 deletions

View File

@ -317,7 +317,7 @@ module ApplicationHelper
def principals_check_box_tags(name, principals) def principals_check_box_tags(name, principals)
s = '' s = ''
principals.each do |principal| principals.each do |principal|
s << "<label>#{ check_box_tag name, principal.id, false } #{h principal}</label>\n" s << "<label>#{ check_box_tag name, principal.id, false, :id => nil } #{h principal}</label>\n"
end end
s.html_safe s.html_safe
end end