diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-04-22 02:57:39 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-04-22 02:57:39 +0000 |
commit | e95ab319835b21cd2b3f2a07cb7034d51dc921e3 (patch) | |
tree | 467b24ae51bd69efa5d6b76e2d179373ed11be3d /app/helpers/watchers_helper.rb | |
parent | fcbeee78c10495bfccba3c3d255413949b1e76fa (diff) | |
download | redmine-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.rb | 6 |
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 |