summaryrefslogtreecommitdiffstats
path: root/app/controllers/reports_controller.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2016-06-18 06:42:25 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2016-06-18 06:42:25 +0000
commit6cd84af522bbc1904d937440a6ad2628cd75fce9 (patch)
tree21a89eae842660308c7d213cf22617633ac23ab8 /app/controllers/reports_controller.rb
parentbbd24fe350a3bdba18eaa3d1a1d9329fd538260d (diff)
downloadredmine-6cd84af522bbc1904d937440a6ad2628cd75fce9.tar.gz
redmine-6cd84af522bbc1904d937440a6ad2628cd75fce9.zip
Limits the tracker list in filters and issue counts (#285).
git-svn-id: http://svn.redmine.org/redmine/trunk@15540 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 b7bf920fd..20279871e 100644
--- a/app/controllers/reports_controller.rb
+++ b/app/controllers/reports_controller.rb
@@ -20,7 +20,7 @@ class ReportsController < ApplicationController
before_filter :find_project, :authorize, :find_issue_statuses
def issue_report
- @trackers = @project.trackers
+ @trackers = @project.rolled_up_trackers(false).visible
@versions = @project.shared_versions.sort
@priorities = IssuePriority.all.reverse
@categories = @project.issue_categories
@@ -43,7 +43,7 @@ class ReportsController < ApplicationController
case params[:detail]
when "tracker"
@field = "tracker_id"
- @rows = @project.trackers
+ @rows = @project.rolled_up_trackers(false).visible
@data = Issue.by_tracker(@project)
@report_title = l(:field_tracker)
when "version"