Fixed identifier condition.

This commit is contained in:
Martin Edenhofer 2016-02-08 06:58:28 +01:00
parent 405be36647
commit f7bfad14eb

View file

@ -186,7 +186,7 @@ class Observer::Ticket::Notification::BackgroundJob
def add_recipient_list(ticket, user, channels) def add_recipient_list(ticket, user, channels)
return if channels.empty? return if channels.empty?
identifier = user.email identifier = user.email
if !identifier && identifier == '' if !identifier || identifier == ''
identifier = user.login identifier = user.login
end end
recipient_list = "#{identifier}(#{channels.join(',')})" recipient_list = "#{identifier}(#{channels.join(',')})"