mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2025-01-19 04:19:54 +01:00
Merge pull request #349 from ErhoSen/email_on_change_api
From gettatr to get, because dict doesn't contatin attributes.
This commit is contained in:
commit
de060bd3be
@ -237,7 +237,13 @@ class API:
|
||||
)
|
||||
messages_sent_to.append(ticket.queue.updated_ticket_cc)
|
||||
|
||||
if ticket.assigned_to and self.request.user != ticket.assigned_to and getattr(ticket.assigned_to.usersettings.settings, 'email_on_ticket_apichange', False) and ticket.assigned_to.email and ticket.assigned_to.email not in messages_sent_to:
|
||||
if (
|
||||
ticket.assigned_to and
|
||||
self.request.user != ticket.assigned_to and
|
||||
ticket.assigned_to.usersettings.settings.get('email_on_ticket_apichange', False) and
|
||||
ticket.assigned_to.email and
|
||||
ticket.assigned_to.email not in messages_sent_to
|
||||
):
|
||||
send_templated_mail(
|
||||
'updated_owner',
|
||||
context,
|
||||
|
Loading…
Reference in New Issue
Block a user