From: Toshi MARUYAMA Date: Fri, 27 Jul 2012 00:40:57 +0000 (+0000) Subject: Merged r10083 from trunk to 2.0-stable (#11511) X-Git-Tag: 2.0.4~26 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=48e4facc3cddda8ecff68be688b60b9c007064f6;p=redmine.git Merged r10083 from trunk to 2.0-stable (#11511) fix confirmation page has broken HTML when a project folding sub project is deleted. Contributed by Haruka Yoshihara. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/2.0-stable@10084 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/views/projects/destroy.html.erb b/app/views/projects/destroy.html.erb index d4348b040..6bed5212a 100644 --- a/app/views/projects/destroy.html.erb +++ b/app/views/projects/destroy.html.erb @@ -4,7 +4,8 @@ <%=l(:text_project_destroy_confirmation)%> <% if @project_to_destroy.descendants.any? %> -
<%= l(:text_subprojects_destroy_warning, content_tag('strong', h(@project_to_destroy.descendants.collect{|p| p.to_s}.join(', ')))) %> +
<%= l(:text_subprojects_destroy_warning, + content_tag('strong', h(@project_to_destroy.descendants.collect{|p| p.to_s}.join(', ')))).html_safe %> <% end %>

diff --git a/test/functional/projects_controller_test.rb b/test/functional/projects_controller_test.rb index 299a6e767..fa916b621 100644 --- a/test/functional/projects_controller_test.rb +++ b/test/functional/projects_controller_test.rb @@ -412,6 +412,10 @@ class ProjectsControllerTest < ActionController::TestCase assert_response :success assert_template 'destroy' assert_not_nil Project.find_by_id(1) + assert_tag :tag => 'strong', + :content => ['Private child of eCookbook', + 'Child of private child, eCookbook Subproject 1', + 'eCookbook Subproject 2'].join(', ') end def test_destroy