summaryrefslogtreecommitdiffstats
path: root/app/views/projects/destroy.rhtml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/projects/destroy.rhtml')
-rw-r--r--app/views/projects/destroy.rhtml4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/projects/destroy.rhtml b/app/views/projects/destroy.rhtml
index a1913c115..09d7d2a1c 100644
--- a/app/views/projects/destroy.rhtml
+++ b/app/views/projects/destroy.rhtml
@@ -3,8 +3,8 @@
<p><strong><%=h @project_to_destroy %></strong><br />
<%=l(:text_project_destroy_confirmation)%>
-<% if @project_to_destroy.children.any? %>
-<br /><%= l(:text_subprojects_destroy_warning, content_tag('strong', h(@project_to_destroy.children.sort.collect{|p| p.to_s}.join(', ')))) %>
+<% if @project_to_destroy.descendants.any? %>
+<br /><%= l(:text_subprojects_destroy_warning, content_tag('strong', h(@project_to_destroy.descendants.collect{|p| p.to_s}.join(', ')))) %>
<% end %>
</p>
<p>