Defect #34185
Trackers of subprojects are not displayed in the Issue summary page
Status: | Closed | Start date: | ||
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | % Done: | 0% | ||
Category: | Issues | |||
Target version: | 4.2.0 | |||
Resolution: | Fixed | Affected version: |
Description
The tracker box in the Issue summary page (projects/:id/issues/report, projects/:id/issues/report/tracker) shows the trackers used only for that project.
I think if "Display subprojects issues on main projects by default" setting is enabled, you should also display trackers that are used only in subprojects.
Related issues
Associated revisions
Trackers of subprojects are not displayed in the Issue summary page (#34185).
Patch by Yuichi HARADA.
History
#1
Updated by Yuichi HARADA 4 months ago
- Copied from Defect #10084: Disabled trackers of subprojects are listed in project overview added
#2
Updated by Yuichi HARADA 4 months ago
- File fixed-34185.patch
added
I created a patch like this.
diff --git a/app/controllers/reports_controller.rb b/app/controllers/reports_controller.rb
index b9ee49100..976907242 100644
--- a/app/controllers/reports_controller.rb
+++ b/app/controllers/reports_controller.rb
@@ -22,14 +22,14 @@ class ReportsController < ApplicationController
before_action :find_project, :authorize, :find_issue_statuses
def issue_report
- @trackers = @project.rolled_up_trackers(false).visible
+ with_subprojects = Setting.display_subprojects_issues?
+ @trackers = @project.rolled_up_trackers(with_subprojects).visible
@versions = @project.shared_versions.sorted
@priorities = IssuePriority.all.reverse
@categories = @project.issue_categories
@assignees = (Setting.issue_group_assignment? ? @project.principals : @project.users).sorted
@authors = @project.users.sorted
@subprojects = @project.descendants.visible
- with_subprojects = Setting.display_subprojects_issues?
@issues_by_tracker = Issue.by_tracker(@project, with_subprojects)
@issues_by_version = Issue.by_version(@project, with_subprojects)
@issues_by_priority = Issue.by_priority(@project, with_subprojects)
@@ -46,7 +46,7 @@ class ReportsController < ApplicationController
case params[:detail]
when "tracker"
@field = "tracker_id"
- @rows = @project.rolled_up_trackers(false).visible
+ @rows = @project.rolled_up_trackers(with_subprojects).visible
@data = Issue.by_tracker(@project, with_subprojects)
@report_title = l(:field_tracker)
when "version"
#3
Updated by Go MAEDA 4 months ago
- Related to Feature #2529: Extend Issue Summary to include subprojects added
#8
Updated by Go MAEDA 4 months ago
- File 34185-v2.patch
added