mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2025-01-29 17:28:53 +01:00
Fix #160 - send e-mails to ticket CC list even if there is no ticket submitter
This commit is contained in:
parent
22b68430df
commit
6c440f3ed0
@ -483,7 +483,8 @@ def update_ticket(request, ticket_id, public=False):
|
|||||||
comment=f.comment,
|
comment=f.comment,
|
||||||
)
|
)
|
||||||
|
|
||||||
if ticket.submitter_email and public and (f.comment or (f.new_status in (Ticket.RESOLVED_STATUS, Ticket.CLOSED_STATUS))):
|
if public and (f.comment or (f.new_status in (Ticket.RESOLVED_STATUS, Ticket.CLOSED_STATUS))):
|
||||||
|
|
||||||
|
|
||||||
if f.new_status == Ticket.RESOLVED_STATUS:
|
if f.new_status == Ticket.RESOLVED_STATUS:
|
||||||
template = 'resolved_submitter'
|
template = 'resolved_submitter'
|
||||||
@ -492,6 +493,7 @@ def update_ticket(request, ticket_id, public=False):
|
|||||||
else:
|
else:
|
||||||
template = 'updated_submitter'
|
template = 'updated_submitter'
|
||||||
|
|
||||||
|
if ticket.submitter_email:
|
||||||
send_templated_mail(
|
send_templated_mail(
|
||||||
template,
|
template,
|
||||||
context,
|
context,
|
||||||
|
Loading…
Reference in New Issue
Block a user