]> source.dussan.org Git - redmine.git/commitdiff
Don't generate duplicate ids.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 10 Feb 2013 16:41:26 +0000 (16:41 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 10 Feb 2013 16:41:26 +0000 (16:41 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11344 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/helpers/application_helper.rb

index 0d33a3089d530f71b1bc87a2c8c7d511883c6d20..4da867d627990db167f2d16695405003981c1152 100644 (file)
@@ -317,7 +317,7 @@ module ApplicationHelper
   def principals_check_box_tags(name, principals)
     s = ''
     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
     s.html_safe
   end