mirror of
https://github.com/redmine/redmine.git
synced 2025-11-09 06:46:01 +01:00
Merged r15586 (#23172).
git-svn-id: http://svn.redmine.org/redmine/branches/3.3-stable@15743 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -35,16 +35,8 @@ class ContextMenusController < ApplicationController
|
||||
:add_watchers => User.current.allowed_to?(:add_issue_watchers, @projects),
|
||||
:delete => @issues.all?(&:deletable?)
|
||||
}
|
||||
if @project
|
||||
if @issue
|
||||
@assignables = @issue.assignable_users
|
||||
else
|
||||
@assignables = @project.assignable_users
|
||||
end
|
||||
else
|
||||
#when multiple projects, we only keep the intersection of each set
|
||||
@assignables = @projects.map(&:assignable_users).reduce(:&)
|
||||
end
|
||||
|
||||
@assignables = @issues.map(&:assignable_users).reduce(:&)
|
||||
@trackers = @projects.map {|p| Issue.allowed_target_trackers(p) }.reduce(:&)
|
||||
@versions = @projects.map {|p| p.shared_versions.open}.reduce(:&)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user