]> source.dussan.org Git - redmine.git/commitdiff
Rails3: html_safe for project_tree_options_for_select method in application helper
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 26 Feb 2012 07:10:54 +0000 (07:10 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 26 Feb 2012 07:10:54 +0000 (07:10 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9011 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/helpers/application_helper.rb

index 8a4d387adaae122985cfb4cf24931ba01b72e034..175fb51098a5ed20eaa8cc28835f10e3cc31b81a 100644 (file)
@@ -250,7 +250,7 @@ module ApplicationHelper
   def project_tree_options_for_select(projects, options = {})
     s = ''
     project_tree(projects) do |project, level|
-      name_prefix = (level > 0 ? ('&nbsp;' * 2 * level + '&#187; ') : '')
+      name_prefix = (level > 0 ? ('&nbsp;' * 2 * level + '&#187; ').html_safe : '')
       tag_options = {:value => project.id}
       if project == options[:selected] || (options[:selected].respond_to?(:include?) && options[:selected].include?(project))
         tag_options[:selected] = 'selected'