Project

General

Profile

Actions

Defect #34185

closed

Trackers of subprojects are not displayed in the Issue summary page

Added by Yuichi HARADA about 4 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Issues
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
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.


Files

fixed-34185.patch (8.64 KB) fixed-34185.patch Yuichi HARADA, 2020-10-29 07:51
34185-v2.patch (8.65 KB) 34185-v2.patch Go MAEDA, 2020-11-16 06:16

Related issues

Related to Redmine - Feature #2529: Extend Issue Summary to include subprojectsClosedGo MAEDA2009-01-19

Actions
Related to Redmine - Defect #35664: Inconsistencies in rendering of subproject data on Issues ReportsNew

Actions
Related to Redmine - Feature #35647: Allow the user to properly override Setting.display_subprojects_issues on Issue Reports if a project has subprojectsNew

Actions
Copied from Redmine - Defect #10084: Disabled trackers of subprojects are listed in project overviewClosedGo MAEDA

Actions
Actions #1

Updated by Yuichi HARADA about 4 years ago

  • Copied from Defect #10084: Disabled trackers of subprojects are listed in project overview added
Actions #2

Updated by Yuichi HARADA about 4 years ago

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" 
Actions #3

Updated by Go MAEDA about 4 years ago

  • Related to Feature #2529: Extend Issue Summary to include subprojects added
Actions #4

Updated by Go MAEDA about 4 years ago

  • Category changed from Projects to Issues
  • Status changed from New to Confirmed
  • Target version set to Candidate for next major release

Confirmed the issue. The attached patch is a fix for #2529 that delivered in Redmine 4.0.0.

Actions #5

Updated by Go MAEDA about 4 years ago

  • File 34185-v2.patch added

I have got rid of RuboCop Rails/DynamicFindBy offense.

Actions #6

Updated by Go MAEDA about 4 years ago

  • Target version changed from Candidate for next major release to 4.2.0

Setting the target version to 4.2.0.

Actions #7

Updated by Go MAEDA about 4 years ago

  • File deleted (34185-v2.patch)
Actions #8

Updated by Go MAEDA about 4 years ago

Actions #9

Updated by Go MAEDA about 4 years ago

  • Status changed from Confirmed to Closed
  • Assignee set to Go MAEDA
  • Resolution set to Fixed

Committed the patch. Thank you for your contribution.

Actions #10

Updated by Go MAEDA about 4 years ago

  • Subject changed from Trackers of subprojects are not listed in the Issue summary page to Trackers of subprojects are not displayed in the Issue summary page
Actions #11

Updated by Mischa The Evil over 3 years ago

  • Related to Defect #35664: Inconsistencies in rendering of subproject data on Issues Reports added
Actions #12

Updated by Mischa The Evil over 3 years ago

  • Related to Feature #35647: Allow the user to properly override Setting.display_subprojects_issues on Issue Reports if a project has subprojects added
Actions

Also available in: Atom PDF