]> source.dussan.org Git - redmine.git/commitdiff
Fixed: private subprojects names may be revealed on issue summary report (#5360).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 27 Apr 2010 16:43:52 +0000 (16:43 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 27 Apr 2010 16:43:52 +0000 (16:43 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3692 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/reports_controller.rb

index 4b7942a7cc0fa54b319fe702839ba3be43c82337..0d471507893d4a406197ffdb50d142ee167ddca8 100644 (file)
@@ -26,7 +26,7 @@ class ReportsController < ApplicationController
     @categories = @project.issue_categories
     @assignees = @project.members.collect { |m| m.user }.sort
     @authors = @project.members.collect { |m| m.user }.sort
-    @subprojects = @project.descendants.active
+    @subprojects = @project.descendants.visible
 
     @issues_by_tracker = Issue.by_tracker(@project)
     @issues_by_version = Issue.by_version(@project)
@@ -73,7 +73,7 @@ class ReportsController < ApplicationController
       @report_title = l(:field_author)
     when "subproject"
       @field = "project_id"
-      @rows = @project.descendants.active
+      @rows = @project.descendants.visible
       @data = Issue.by_subproject(@project) || []
       @report_title = l(:field_subproject)
     end