diff --git a/app/models/observer/ticket/notification/background_job.rb b/app/models/observer/ticket/notification/background_job.rb index 84d459235..82ea495b4 100644 --- a/app/models/observer/ticket/notification/background_job.rb +++ b/app/models/observer/ticket/notification/background_job.rb @@ -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(',')})"