From 30f30d57ffa7973827af3e38fcb1d9862d278eea Mon Sep 17 00:00:00 2001 From: Rohit Waghchaure Date: Wed, 9 Oct 2019 14:47:00 +0530 Subject: [PATCH] fix: notification is not working if recipients is not set and cc is set --- frappe/email/doctype/notification/notification.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/email/doctype/notification/notification.py b/frappe/email/doctype/notification/notification.py index 6ae4243775..d40f64b8bd 100644 --- a/frappe/email/doctype/notification/notification.py +++ b/frappe/email/doctype/notification/notification.py @@ -143,7 +143,7 @@ def get_context(context): attachments = self.get_attachment(doc) recipients, cc, bcc = self.get_list_of_recipients(doc, context) - if not recipients: + if not (recipients or cc or bcc): return sender = None if self.sender and self.sender_email: