mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2025-08-16 02:48:00 +02:00
Fix Issue #404: Refactor converting query string into queue:id
This commit is contained in:
@ -78,10 +78,7 @@ def view_ticket(request):
|
||||
error_message = ''
|
||||
|
||||
if ticket_req and email:
|
||||
parts = ticket_req.split('-')
|
||||
queue = '-'.join(parts[0:-1])
|
||||
ticket_id = parts[-1]
|
||||
|
||||
queue, ticket_id = Ticket.queue_and_id_from_query(ticket_req)
|
||||
try:
|
||||
ticket = Ticket.objects.get(id=ticket_id, submitter_email__iexact=email)
|
||||
except:
|
||||
|
Reference in New Issue
Block a user