From a5452a4cbdea823dec5d57a8bbfbe5d8dbfdde0c Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Mon, 8 Feb 2016 23:06:21 +0100 Subject: [PATCH] Improved error handling. --- app/models/observer/ticket/notification/background_job.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/models/observer/ticket/notification/background_job.rb b/app/models/observer/ticket/notification/background_job.rb index 2f93161e7..3b44f4b64 100644 --- a/app/models/observer/ticket/notification/background_job.rb +++ b/app/models/observer/ticket/notification/background_job.rb @@ -75,6 +75,7 @@ class Observer::Ticket::Notification::BackgroundJob next if !data next if !data['criteria'] channels = data['channel'] + next if !channels if data['criteria']['owned_by_me'] && ticket.owner_id == user.id data = { user: user, @@ -409,6 +410,10 @@ i18n(Changes):
def template_header(_user) '