Author should be displayed as assignable on a single issue right click menu (#7136).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6310 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2011-07-23 20:02:31 +00:00
parent fdd5367eba
commit d0889f9127
1 changed files with 5 additions and 2 deletions

View File

@ -26,8 +26,11 @@ class ContextMenusController < ApplicationController
:delete => User.current.allowed_to?(:delete_issues, @projects)
}
if @project
@assignables = @project.assignable_users
@assignables << @issue.assigned_to if @issue && @issue.assigned_to && !@assignables.include?(@issue.assigned_to)
if @issue
@assignables = @issue.assignable_users
else
@assignables = @project.assignable_users
end
@trackers = @project.trackers
else
#when multiple projects, we only keep the intersection of each set