Fixed identifier condition.
This commit is contained in:
parent
405be36647
commit
f7bfad14eb
1 changed files with 1 additions and 1 deletions
|
@ -186,7 +186,7 @@ class Observer::Ticket::Notification::BackgroundJob
|
|||
def add_recipient_list(ticket, user, channels)
|
||||
return if channels.empty?
|
||||
identifier = user.email
|
||||
if !identifier && identifier == ''
|
||||
if !identifier || identifier == ''
|
||||
identifier = user.login
|
||||
end
|
||||
recipient_list = "#{identifier}(#{channels.join(',')})"
|
||||
|
|
Loading…
Reference in a new issue