summaryrefslogtreecommitdiffstats
path: root/app/controllers/reports_controller.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-11-20 20:29:03 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-11-20 20:29:03 +0000
commit8d91afc33e3b5e7ef491fb30fb5ccbda35a1d02d (patch)
tree8318d86019c2000aa720c737b50e77a5aee8bce6 /app/controllers/reports_controller.rb
parent987a5aa22114ec2e931464782351431e4dfec97c (diff)
downloadredmine-8d91afc33e3b5e7ef491fb30fb5ccbda35a1d02d.tar.gz
redmine-8d91afc33e3b5e7ef491fb30fb5ccbda35a1d02d.zip
Added per-project tracker selection. Trackers can be selected on project settings.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@920 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 6b95944a0..e18e117a6 100644
--- a/app/controllers/reports_controller.rb
+++ b/app/controllers/reports_controller.rb
@@ -25,7 +25,7 @@ class ReportsController < ApplicationController
case params[:detail]
when "tracker"
@field = "tracker_id"
- @rows = Tracker.find :all, :order => 'position'
+ @rows = @project.trackers
@data = issues_by_tracker
@report_title = l(:field_tracker)
render :template => "reports/issue_report_details"
@@ -60,7 +60,7 @@ class ReportsController < ApplicationController
@report_title = l(:field_subproject)
render :template => "reports/issue_report_details"
else
- @trackers = Tracker.find(:all, :order => 'position')
+ @trackers = @project.trackers
@versions = @project.versions.sort
@priorities = Enumeration::get_values('IPRI')
@categories = @project.issue_categories