mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2025-08-09 00:04:50 +02:00
Ticket #403 - This code changes the behaviour of lookups for tickets and
ignores the queue name. This means that queue changes on a ticket dont break the email links which have already been sent out. The queue name still exists in the link/url, but is not used in the lookup
This commit is contained in:
@ -83,7 +83,7 @@ def view_ticket(request):
|
||||
ticket_id = parts[-1]
|
||||
|
||||
try:
|
||||
ticket = Ticket.objects.get(id=ticket_id, queue__slug__iexact=queue, submitter_email__iexact=email)
|
||||
ticket = Ticket.objects.get(id=ticket_id, submitter_email__iexact=email)
|
||||
except:
|
||||
ticket = False
|
||||
error_message = _('Invalid ticket ID or e-mail address. Please try again.')
|
||||
|
Reference in New Issue
Block a user