Rails3: helper: html_safe for watchers_checkboxes in WatchersHelper

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9463 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA committed 2012-04-22 02:57:39 +00:00
1 parent fcbeee78c1
commit e95ab31983
1 file changed
+4 -2
+4 -2
View File
@@ -68,7 +68,9 @@ module WatchersHelper
users.map do |user| users.map do |user|
c = checked.nil? ? object.watched_by?(user) : checked c = checked.nil? ? object.watched_by?(user) : checked
tag = check_box_tag 'issue[watcher_user_ids][]', user.id, c, :id => nil tag = check_box_tag 'issue[watcher_user_ids][]', user.id, c, :id => nil
content_tag 'label', "#{tag} #{h(user)}", :id => "issue_watcher_user_ids_#{user.id}", :class => "floating" content_tag 'label', "#{tag} #{h(user)}".html_safe,
end.join :id => "issue_watcher_user_ids_#{user.id}",
:class => "floating"
end.join.html_safe
end end
end end