@@ -17,11 +17,9 | |||||
17 |
|
17 | |||
18 | class ReportsController < ApplicationController |
|
18 | class ReportsController < ApplicationController | |
19 | menu_item :issues |
|
19 | menu_item :issues | |
20 | before_filter :find_project, :authorize |
|
20 | before_filter :find_project, :authorize, :find_issue_statuses | |
21 |
|
21 | |||
22 | def issue_report |
|
22 | def issue_report | |
23 | @statuses = IssueStatus.find(:all, :order => 'position') |
|
|||
24 |
|
||||
25 | @trackers = @project.trackers |
|
23 | @trackers = @project.trackers | |
26 | @versions = @project.shared_versions.sort |
|
24 | @versions = @project.shared_versions.sort | |
27 | @priorities = IssuePriority.all |
|
25 | @priorities = IssuePriority.all | |
@@ -42,8 +40,6 class ReportsController < ApplicationController | |||||
42 | end |
|
40 | end | |
43 |
|
41 | |||
44 | def issue_report_details |
|
42 | def issue_report_details | |
45 | @statuses = IssueStatus.find(:all, :order => 'position') |
|
|||
46 |
|
||||
47 | case params[:detail] |
|
43 | case params[:detail] | |
48 | when "tracker" |
|
44 | when "tracker" | |
49 | @field = "tracker_id" |
|
45 | @field = "tracker_id" | |
@@ -91,4 +87,9 class ReportsController < ApplicationController | |||||
91 | end |
|
87 | end | |
92 | end |
|
88 | end | |
93 |
|
89 | |||
|
90 | private | |||
|
91 | ||||
|
92 | def find_issue_statuses | |||
|
93 | @statuses = IssueStatus.find(:all, :order => 'position') | |||
|
94 | end | |||
94 | end |
|
95 | end |
General Comments 0
You need to be logged in to leave comments.
Login now