summaryrefslogtreecommitdiffstats
path: root/app/controllers
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2021-12-12 04:40:32 +0000
committerGo MAEDA <maeda@farend.jp>2021-12-12 04:40:32 +0000
commitb4dbd821c903f3b30bd2b188562462ee21383e9b (patch)
tree59fa8259d83cc169aff8af7a97ad54d57e794f9d /app/controllers
parent8b452eb3417a365c7d5be1f6e4caa34b32c41e5b (diff)
downloadredmine-b4dbd821c903f3b30bd2b188562462ee21383e9b.tar.gz
redmine-b4dbd821c903f3b30bd2b188562462ee21383e9b.zip
Issue Summary: add statistics about issues without assignee, version or category (#13099).
Patch by Takenori TAKAKI. git-svn-id: http://svn.redmine.org/redmine/trunk@21309 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/reports_controller.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/app/controllers/reports_controller.rb b/app/controllers/reports_controller.rb
index bc9605b6d..6f6d4c313 100644
--- a/app/controllers/reports_controller.rb
+++ b/app/controllers/reports_controller.rb
@@ -24,10 +24,10 @@ class ReportsController < ApplicationController
def issue_report
with_subprojects = Setting.display_subprojects_issues?
@trackers = @project.rolled_up_trackers(with_subprojects).visible
- @versions = @project.shared_versions.sorted
+ @versions = @project.shared_versions.sorted + [Version.new(:name => "[#{l(:label_none)}]")]
@priorities = IssuePriority.all.reverse
- @categories = @project.issue_categories
- @assignees = (Setting.issue_group_assignment? ? @project.principals : @project.users).sorted
+ @categories = @project.issue_categories + [IssueCategory.new(:name => "[#{l(:label_none)}]")]
+ @assignees = (Setting.issue_group_assignment? ? @project.principals : @project.users).sorted + [User.new(:firstname => "[#{l(:label_none)}]")]
@authors = @project.users.sorted
@subprojects = @project.descendants.visible
@issues_by_tracker = Issue.by_tracker(@project, with_subprojects)
@@ -51,7 +51,7 @@ class ReportsController < ApplicationController
@report_title = l(:field_tracker)
when "version"
@field = "fixed_version_id"
- @rows = @project.shared_versions.sorted
+ @rows = @project.shared_versions.sorted + [Version.new(:name => "[#{l(:label_none)}]")]
@data = Issue.by_version(@project, with_subprojects)
@report_title = l(:field_version)
when "priority"
@@ -61,12 +61,12 @@ class ReportsController < ApplicationController
@report_title = l(:field_priority)
when "category"
@field = "category_id"
- @rows = @project.issue_categories
+ @rows = @project.issue_categories + [IssueCategory.new(:name => "[#{l(:label_none)}]")]
@data = Issue.by_category(@project, with_subprojects)
@report_title = l(:field_category)
when "assigned_to"
@field = "assigned_to_id"
- @rows = (Setting.issue_group_assignment? ? @project.principals : @project.users).sorted
+ @rows = (Setting.issue_group_assignment? ? @project.principals : @project.users).sorted + [User.new(:firstname => "[#{l(:label_none)}]")]
@data = Issue.by_assigned_to(@project, with_subprojects)
@report_title = l(:field_assigned_to)
when "author"