diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-02-26 07:10:54 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-02-26 07:10:54 +0000 |
commit | aa0935c13bdc33f43a56101fa5d8e7f608340ef5 (patch) | |
tree | dfd3d13013f3ecf2a6b6d94204722973b2f8c24c /app/helpers | |
parent | 8e899d967783f24bd45c47bb09a6207ac0df58c7 (diff) | |
download | redmine-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.rb | 2 |
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 ? (' ' * 2 * level + '» ') : '') + name_prefix = (level > 0 ? (' ' * 2 * level + '» ').html_safe : '') tag_options = {:value => project.id} if project == options[:selected] || (options[:selected].respond_to?(:include?) && options[:selected].include?(project)) tag_options[:selected] = 'selected' |