mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2025-08-14 18:18:36 +02:00
more fixes on templated mail and safe context
This commit is contained in:
@ -22,7 +22,7 @@ from django.template import loader, Context
|
||||
from django.utils import simplejson
|
||||
|
||||
from helpdesk.forms import TicketForm
|
||||
from helpdesk.lib import send_templated_mail
|
||||
from helpdesk.lib import send_templated_mail, safe_template_context
|
||||
from helpdesk.models import Ticket, Queue, FollowUp
|
||||
|
||||
STATUS_OK = 200
|
||||
@ -191,11 +191,8 @@ class API:
|
||||
|
||||
f.save()
|
||||
|
||||
context = {
|
||||
'ticket': ticket,
|
||||
'queue': ticket.queue,
|
||||
'comment': f.comment,
|
||||
}
|
||||
context = safe_template_context(ticket)
|
||||
context['comment'] = f.comment
|
||||
|
||||
messages_sent_to = []
|
||||
|
||||
@ -266,11 +263,8 @@ class API:
|
||||
)
|
||||
f.save()
|
||||
|
||||
context = {
|
||||
'ticket': ticket,
|
||||
'queue': ticket.queue,
|
||||
'resolution': f.comment,
|
||||
}
|
||||
context = safe_template_context(ticket)
|
||||
context['resolution'] = f.comment
|
||||
|
||||
subject = '%s %s (Resolved)' % (ticket.ticket, ticket.title)
|
||||
|
||||
|
Reference in New Issue
Block a user