From: Toshi MARUYAMA Date: Sun, 22 Apr 2012 02:57:39 +0000 (+0000) Subject: Rails3: helper: html_safe for watchers_checkboxes in WatchersHelper X-Git-Tag: 2.0.0~161 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e95ab319835b21cd2b3f2a07cb7034d51dc921e3;p=redmine.git 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 --- diff --git a/app/helpers/watchers_helper.rb b/app/helpers/watchers_helper.rb index fb77a90ae..0ecf74c50 100644 --- a/app/helpers/watchers_helper.rb +++ b/app/helpers/watchers_helper.rb @@ -68,7 +68,9 @@ module WatchersHelper users.map do |user| c = checked.nil? ? object.watched_by?(user) : checked 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" - end.join + content_tag 'label', "#{tag} #{h(user)}".html_safe, + :id => "issue_watcher_user_ids_#{user.id}", + :class => "floating" + end.join.html_safe end end