From 36ac660fa55a20715d6b3f0983357ba86e034c2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89lie=20Bouttier?= Date: Mon, 29 Sep 2014 23:42:18 +0200 Subject: [PATCH] fix: refactoring error --- tracker/notifications.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tracker/notifications.py b/tracker/notifications.py index bb37980..ef4166b 100644 --- a/tracker/notifications.py +++ b/tracker/notifications.py @@ -84,7 +84,7 @@ def notify_by_email(data, template, subject, sender, dests): if dest.notifications == User.NOTIFICATIONS_NEVER: continue - if dest == issue.author \ + if dest == sender \ and dest.notifications == User.NOTIFICATIONS_OTHERS: continue dest_addr = dest.email