mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2024-12-13 02:10:49 +01:00
Fix issue #32: Public view for queues with a hyphen in the slug
caused an error. Thanks to simeonf.
This commit is contained in:
parent
37c6197859
commit
787a727ecf
@ -60,7 +60,10 @@ def view_ticket(request):
|
||||
error_message = ''
|
||||
|
||||
if ticket and email:
|
||||
queue, ticket_id = ticket.split('-')
|
||||
parts = ticket.split('-')
|
||||
queue = '-'.join(parts[0:-1])
|
||||
ticket_id = parts[-1]
|
||||
|
||||
try:
|
||||
t = Ticket.objects.get(id=ticket_id, queue__slug__iexact=queue, submitter_email__iexact=email)
|
||||
except Ticket.DoesNotExist:
|
||||
|
Loading…
Reference in New Issue
Block a user