summaryrefslogtreecommitdiffstats
path: root/app/controllers/context_menus_controller.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2016-05-30 18:20:13 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2016-05-30 18:20:13 +0000
commita6828512c02b20eaeb9c42fc2612c7010ede73fa (patch)
treec35bd9b72bad7aa7d48270258a404b5af9472b96 /app/controllers/context_menus_controller.rb
parentfad71f8b4bd8f1079c3fe355dc2dafeb2b5ca9ee (diff)
downloadredmine-a6828512c02b20eaeb9c42fc2612c7010ede73fa.tar.gz
redmine-a6828512c02b20eaeb9c42fc2612c7010ede73fa.zip
Adds Issue#allowed_target_trackers (#7839).
git-svn-id: http://svn.redmine.org/redmine/trunk@15430 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/context_menus_controller.rb')
-rw-r--r--app/controllers/context_menus_controller.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/controllers/context_menus_controller.rb b/app/controllers/context_menus_controller.rb
index 1e5652d09..59ee3a77a 100644
--- a/app/controllers/context_menus_controller.rb
+++ b/app/controllers/context_menus_controller.rb
@@ -41,12 +41,11 @@ class ContextMenusController < ApplicationController
else
@assignables = @project.assignable_users
end
- @trackers = @project.trackers
else
#when multiple projects, we only keep the intersection of each set
@assignables = @projects.map(&:assignable_users).reduce(:&)
- @trackers = @projects.map(&:trackers).reduce(:&)
end
+ @trackers = @projects.map {|p| Issue.allowed_target_trackers(p) }.reduce(:&)
@versions = @projects.map {|p| p.shared_versions.open}.reduce(:&)
@priorities = IssuePriority.active.reverse