]> source.dussan.org Git - redmine.git/commitdiff
Rails3: helper: html_safe for watchers_checkboxes in WatchersHelper
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 22 Apr 2012 02:57:39 +0000 (02:57 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 22 Apr 2012 02:57:39 +0000 (02:57 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9463 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/helpers/watchers_helper.rb

index fb77a90aebf5abc10a563715a701f181f0d4c1e6..0ecf74c50145a6fad99e701fe5306f5d23c7e360 100644 (file)
@@ -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