fix: handle None value in recipients while sending system notification

This commit is contained in:
prssanna 2020-09-16 15:05:28 +05:30
parent 898098d38e
commit fc2fdbe426

View file

@ -167,7 +167,10 @@ def get_context(context):
subject = frappe.render_template(self.subject, context)
attachments = self.get_attachment(doc)
recipients, cc, bcc = self.get_list_of_recipients(doc, context)
if not (recipients or cc or bcc):
return
users = recipients + cc + bcc
notification_doc = {