From f7bfad14eb818cbe97bb48837803a2c2ddb091d5 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Mon, 8 Feb 2016 06:58:28 +0100 Subject: [PATCH] Fixed identifier condition. --- app/models/observer/ticket/notification/background_job.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(',')})"