mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-22 00:11:14 +00:00
Fixed that #find_assignee_from_keyword may return a group with blank keyword (#20454).
git-svn-id: http://svn.redmine.org/redmine/trunk@14499 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
4e8f1f92b3
commit
b66358ac6c
@ -544,6 +544,8 @@ class MailHandler < ActionMailer::Base
|
||||
|
||||
def find_assignee_from_keyword(keyword, issue)
|
||||
keyword = keyword.to_s
|
||||
return nil if keyword.blank?
|
||||
|
||||
assignable = issue.assignable_users
|
||||
assignee = nil
|
||||
assignee ||= assignable.detect {|a|
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user