mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2024-12-27 09:08:53 +01:00
Merge pull request #808 from ilikerobots/patch-2
Fix for 'NoneType' object has no attribute 'email'
This commit is contained in:
commit
b9933a8c9c
@ -551,7 +551,7 @@ def ticket_from_message(message, queue, logger):
|
||||
# copy email to all those CC'd to this particular ticket
|
||||
for cc in t.ticketcc_set.all():
|
||||
# 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(
|
||||
'updated_cc',
|
||||
context,
|
||||
|
Loading…
Reference in New Issue
Block a user