summaryrefslogtreecommitdiffstats
path: root/app/helpers
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2021-02-23 03:17:29 +0000
committerGo MAEDA <maeda@farend.jp>2021-02-23 03:17:29 +0000
commite1cfdc38c98afc90bae97e1afd457af9dca5bb5a (patch)
treef2668626778b1e82c5f94a6255411ebf1c7528c5 /app/helpers
parenta8072b0d0f201754cfc6f0867b642fdb43af6054 (diff)
downloadredmine-e1cfdc38c98afc90bae97e1afd457af9dca5bb5a.tar.gz
redmine-e1cfdc38c98afc90bae97e1afd457af9dca5bb5a.zip
Projects API should not return invisible trackers (#30121).
Patch by Yuichi HARADA. git-svn-id: http://svn.redmine.org/redmine/trunk@20753 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/projects_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/projects_helper.rb b/app/helpers/projects_helper.rb
index 7726050d9..77f964a9e 100644
--- a/app/helpers/projects_helper.rb
+++ b/app/helpers/projects_helper.rb
@@ -134,7 +134,7 @@ module ProjectsHelper
def render_api_includes(project, api)
api.array :trackers do
- project.trackers.each do |tracker|
+ project.rolled_up_trackers(false).visible.each do |tracker|
api.tracker(:id => tracker.id, :name => tracker.name)
end
end if include_in_api_response?('trackers')