* Only e-mail user on ticket change if there is a comment to send them.

This commit is contained in:
Ross Poulton 2008-01-07 20:31:56 +00:00
parent 977d0e0aca
commit d146283259

View File

@ -132,7 +132,7 @@ def update_ticket(request, ticket_id):
if f.new_status == Ticket.RESOLVED_STATUS: if f.new_status == Ticket.RESOLVED_STATUS:
ticket.resolution = comment ticket.resolution = comment
if public and ticket.submitter_email: if public and ticket.submitter_email and f.comment:
context = { context = {
'ticket': ticket, 'ticket': ticket,
'queue': ticket.queue, 'queue': ticket.queue,