mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2024-11-22 16:03:19 +01:00
Fixes issue #46 - could not reassign tickets.
This commit is contained in:
parent
e37609de6e
commit
9830e1c3c1
@ -150,7 +150,7 @@ def update_ticket(request, ticket_id):
|
||||
|
||||
f = FollowUp(ticket=ticket, date=datetime.now(), comment=comment)
|
||||
|
||||
if request.user.is_staff():
|
||||
if request.user.is_staff:
|
||||
f.user = request.user
|
||||
|
||||
f.public = public
|
||||
@ -296,7 +296,7 @@ def update_ticket(request, ticket_id):
|
||||
|
||||
ticket.save()
|
||||
|
||||
if request.user.is_staff():
|
||||
if request.user.is_staff:
|
||||
return HttpResponseRedirect(ticket.get_absolute_url())
|
||||
else:
|
||||
return HttpResponseRedirect(ticket.ticket_url)
|
||||
|
Loading…
Reference in New Issue
Block a user