mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2025-08-18 11:49:56 +02:00
Formatting fixes
This commit is contained in:
@@ -138,15 +138,20 @@ def process_email_notifications_for_ticket_update(
|
|||||||
Sends email notifications when the ticket is updated in any way.
|
Sends email notifications when the ticket is updated in any way.
|
||||||
"""
|
"""
|
||||||
template_prefix = get_email_template_prefix(reassigned, follow_up)
|
template_prefix = get_email_template_prefix(reassigned, follow_up)
|
||||||
if helpdesk_settings.HELPDESK_NOTIFY_SUBMITTER_FOR_ALL_TICKET_CHANGES or (public and (
|
if helpdesk_settings.HELPDESK_NOTIFY_SUBMITTER_FOR_ALL_TICKET_CHANGES or (
|
||||||
|
public
|
||||||
|
and (
|
||||||
follow_up.comment
|
follow_up.comment
|
||||||
or (follow_up.new_status in (Ticket.RESOLVED_STATUS, Ticket.CLOSED_STATUS)))
|
or (follow_up.new_status in (Ticket.RESOLVED_STATUS, Ticket.CLOSED_STATUS))
|
||||||
|
)
|
||||||
):
|
):
|
||||||
# Use hard coded prefix for submitter updates on tickets for backwards compatibility
|
# Use hard coded prefix for submitter updates on tickets for backwards compatibility
|
||||||
# TODO: possibly make the template prefix modification configurable
|
# TODO: possibly make the template prefix modification configurable
|
||||||
messages_sent_to.update(
|
messages_sent_to.update(
|
||||||
ticket.send(
|
ticket.send(
|
||||||
{"submitter": ("update_submitter", context),},
|
{
|
||||||
|
"submitter": ("update_submitter", context),
|
||||||
|
},
|
||||||
dont_send_to=messages_sent_to,
|
dont_send_to=messages_sent_to,
|
||||||
fail_silently=True,
|
fail_silently=True,
|
||||||
files=files,
|
files=files,
|
||||||
|
Reference in New Issue
Block a user