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