From d0889f9127c67fe6e8b604c8e259961dded9282b Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 23 Jul 2011 20:02:31 +0000 Subject: [PATCH] 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 --- app/controllers/context_menus_controller.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/controllers/context_menus_controller.rb b/app/controllers/context_menus_controller.rb index dd93724dd..1e170396d 100644 --- a/app/controllers/context_menus_controller.rb +++ b/app/controllers/context_menus_controller.rb @@ -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 -- 2.39.5