Update get_email.py

This commit is contained in:
Mike Hoolehan 2020-03-18 09:11:48 +02:00 committed by GitHub
parent 62e73f8a31
commit 266775dbf6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -551,7 +551,7 @@ def ticket_from_message(message, queue, logger):
# copy email to all those CC'd to this particular ticket # copy email to all those CC'd to this particular ticket
for cc in t.ticketcc_set.all(): for cc in t.ticketcc_set.all():
# don't duplicate email to assignee # don't duplicate email to assignee
if t.assigned_to.email != cc.email_address: if not t.assigned_to or (t.assigned_to.email != cc.email_address):
send_templated_mail( send_templated_mail(
'updated_cc', 'updated_cc',
context, context,