summaryrefslogtreecommitdiffstats
path: root/app/controllers/reports_controller.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2010-04-27 16:43:52 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2010-04-27 16:43:52 +0000
commitc18cb9451dfbf5a75718eede6fdf2e4c9109f819 (patch)
tree1f3aa3c3138eb9991246798229399bb45c459284 /app/controllers/reports_controller.rb
parentdf7edb843bf903a8c9a9d1d8ccf661f16ce31f98 (diff)
downloadredmine-c18cb9451dfbf5a75718eede6fdf2e4c9109f819.tar.gz
redmine-c18cb9451dfbf5a75718eede6fdf2e4c9109f819.zip
Fixed: private subprojects names may be revealed on issue summary report (#5360).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3692 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/reports_controller.rb')
-rw-r--r--app/controllers/reports_controller.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/reports_controller.rb b/app/controllers/reports_controller.rb
index 4b7942a7c..0d4715078 100644
--- a/app/controllers/reports_controller.rb
+++ b/app/controllers/reports_controller.rb
@@ -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