21 |
21 |
|
22 |
22 |
def issue_report
|
23 |
23 |
@trackers = @project.rolled_up_trackers(false).visible
|
24 |
|
@versions = @project.shared_versions.sort
|
|
24 |
@versions = @project.shared_versions.sorted
|
25 |
25 |
@priorities = IssuePriority.all.reverse
|
26 |
26 |
@categories = @project.issue_categories
|
27 |
|
@assignees = (Setting.issue_group_assignment? ? @project.principals : @project.users).sort
|
28 |
|
@authors = @project.users.sort
|
|
27 |
@assignees = (Setting.issue_group_assignment? ? @project.principals : @project.users).sorted
|
|
28 |
@authors = @project.users.sorted
|
29 |
29 |
@subprojects = @project.descendants.visible
|
30 |
30 |
with_subprojects = Setting.display_subprojects_issues?
|
31 |
31 |
@issues_by_tracker = Issue.by_tracker(@project, with_subprojects)
|
... | ... | |
49 |
49 |
@report_title = l(:field_tracker)
|
50 |
50 |
when "version"
|
51 |
51 |
@field = "fixed_version_id"
|
52 |
|
@rows = @project.shared_versions.sort
|
|
52 |
@rows = @project.shared_versions.sorted
|
53 |
53 |
@data = Issue.by_version(@project, with_subprojects)
|
54 |
54 |
@report_title = l(:field_version)
|
55 |
55 |
when "priority"
|
... | ... | |
64 |
64 |
@report_title = l(:field_category)
|
65 |
65 |
when "assigned_to"
|
66 |
66 |
@field = "assigned_to_id"
|
67 |
|
@rows = (Setting.issue_group_assignment? ? @project.principals : @project.users).sort
|
|
67 |
@rows = (Setting.issue_group_assignment? ? @project.principals : @project.users).sorted
|
68 |
68 |
@data = Issue.by_assigned_to(@project, with_subprojects)
|
69 |
69 |
@report_title = l(:field_assigned_to)
|
70 |
70 |
when "author"
|
71 |
71 |
@field = "author_id"
|
72 |
|
@rows = @project.users.sort
|
|
72 |
@rows = @project.users.sorted
|
73 |
73 |
@data = Issue.by_author(@project, with_subprojects)
|
74 |
74 |
@report_title = l(:field_author)
|
75 |
75 |
when "subproject"
|