mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2025-05-20 17:30:46 +02:00
Fix issue #78: Sending mail to a closed ticket does NOT reopen the ticket
This has now changed, emailing a closed ticket changes it to 'Reopened'. Thanks to mdornseif for the suggestion.
This commit is contained in:
parent
506d915704
commit
06fe35e944
@ -242,6 +242,10 @@ def ticket_from_message(message, queue, quiet):
|
||||
new = True
|
||||
update = ''
|
||||
|
||||
elif t.status == Ticket.CLOSED_STATUS:
|
||||
t.status = Ticket.REOPENED_STATUS
|
||||
t.save()
|
||||
|
||||
context = {
|
||||
'ticket': t,
|
||||
'queue': queue,
|
||||
@ -277,7 +281,10 @@ def ticket_from_message(message, queue, quiet):
|
||||
)
|
||||
|
||||
else:
|
||||
update = _(' (Updated)')
|
||||
if t.status == Ticket.REOPENED_STATUS:
|
||||
update = _(' (Reopened')
|
||||
else:
|
||||
update = _(' (Updated)')
|
||||
|
||||
if t.assigned_to:
|
||||
send_templated_mail(
|
||||
@ -304,6 +311,11 @@ def ticket_from_message(message, queue, quiet):
|
||||
public = True,
|
||||
comment = body,
|
||||
)
|
||||
|
||||
if t.status == Ticket.REOPENED_STATUS:
|
||||
f.new_status = Ticket.REOPENED_STATUS
|
||||
f.title = _('Ticket Re-Opened by E-Mail Received from %(sender_email)s' % {'sender_email': sender_email})
|
||||
|
||||
f.save()
|
||||
|
||||
if not quiet:
|
||||
|
Loading…
Reference in New Issue
Block a user