From 7798e1b1f77645099a0e54769bcc279e078917b5 Mon Sep 17 00:00:00 2001 From: Eric Davis Date: Thu, 7 Oct 2010 17:28:29 +0000 Subject: Allow assigning issues back to the author. #4199 This allows an issue to be reassigned to the author even if they are not a project member. Useful when passing back an issue to get more information from the author. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4240 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/models/issue.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'app') diff --git a/app/models/issue.rb b/app/models/issue.rb index 44b4ba80b..6856355cc 100644 --- a/app/models/issue.rb +++ b/app/models/issue.rb @@ -390,7 +390,9 @@ class Issue < ActiveRecord::Base # Users the issue can be assigned to def assignable_users - project.assignable_users + users = project.assignable_users + users << author if author + users.sort end # Versions that the issue can be assigned to -- cgit v1.2.3