summaryrefslogtreecommitdiffstats
path: root/app/helpers
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-02-26 07:10:54 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-02-26 07:10:54 +0000
commitaa0935c13bdc33f43a56101fa5d8e7f608340ef5 (patch)
treedfd3d13013f3ecf2a6b6d94204722973b2f8c24c /app/helpers
parent8e899d967783f24bd45c47bb09a6207ac0df58c7 (diff)
downloadredmine-aa0935c13bdc33f43a56101fa5d8e7f608340ef5.tar.gz
redmine-aa0935c13bdc33f43a56101fa5d8e7f608340ef5.zip
Rails3: html_safe for project_tree_options_for_select method in application helper
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9011 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/application_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index 8a4d387ad..175fb5109 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -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'