From e73267fc0e165f0a7b152c58d3111fddfa06eeab Mon Sep 17 00:00:00 2001 From: Andrew Avenoso Date: Mon, 31 Oct 2011 16:52:27 -0300 Subject: [PATCH] error emails were not being sent if the app was configured to notify all users --- app/models/notice.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/notice.rb b/app/models/notice.rb index 509c8b4..0af2294 100644 --- a/app/models/notice.rb +++ b/app/models/notice.rb @@ -83,7 +83,7 @@ class Notice protected def should_notify? - app.notify_on_errs? && (Errbit::Config.per_app_email_at_notices && app.email_at_notices || Errbit::Config.email_at_notices).include?(problem.notices_count) && app.watchers.any? + app.notify_on_errs? && (Errbit::Config.per_app_email_at_notices && app.email_at_notices || Errbit::Config.email_at_notices).include?(problem.notices_count) && app.notification_recipients.any? end def increase_counter_cache -- libgit2 0.21.2