]> source.dussan.org Git - redmine.git/commitdiff
Rails3: use String#html_safe for parent_project_select_tag() at ProjectsHelper.
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 20 Aug 2011 22:52:37 +0000 (22:52 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 20 Aug 2011 22:52:37 +0000 (22:52 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6492 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/helpers/projects_helper.rb

index 854e614e1f51c09f7a383a7b04c15d47db17cb49..f26e7b9d8579f6a51286e35b036e6c0a47ea238c 100644 (file)
@@ -46,7 +46,7 @@ module ProjectsHelper
     options = ''
     options << "<option value=''></option>" if project.allowed_parents.include?(nil)
     options << project_tree_options_for_select(project.allowed_parents.compact, :selected => selected)
-    content_tag('select', options, :name => 'project[parent_id]', :id => 'project_parent_id')
+    content_tag('select', options.html_safe, :name => 'project[parent_id]', :id => 'project_parent_id')
   end
 
   # Renders a tree of projects as a nested set of unordered lists