summaryrefslogtreecommitdiffstats
path: root/app/helpers/watchers_helper.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-04-22 02:57:39 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-04-22 02:57:39 +0000
commite95ab319835b21cd2b3f2a07cb7034d51dc921e3 (patch)
tree467b24ae51bd69efa5d6b76e2d179373ed11be3d /app/helpers/watchers_helper.rb
parentfcbeee78c10495bfccba3c3d255413949b1e76fa (diff)
downloadredmine-e95ab319835b21cd2b3f2a07cb7034d51dc921e3.tar.gz
redmine-e95ab319835b21cd2b3f2a07cb7034d51dc921e3.zip
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
Diffstat (limited to 'app/helpers/watchers_helper.rb')
-rw-r--r--app/helpers/watchers_helper.rb6
1 files changed, 4 insertions, 2 deletions
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