mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2024-12-13 18:31:10 +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)
|
f = FollowUp(ticket=ticket, date=datetime.now(), comment=comment)
|
||||||
|
|
||||||
if request.user.is_staff():
|
if request.user.is_staff:
|
||||||
f.user = request.user
|
f.user = request.user
|
||||||
|
|
||||||
f.public = public
|
f.public = public
|
||||||
@ -296,7 +296,7 @@ def update_ticket(request, ticket_id):
|
|||||||
|
|
||||||
ticket.save()
|
ticket.save()
|
||||||
|
|
||||||
if request.user.is_staff():
|
if request.user.is_staff:
|
||||||
return HttpResponseRedirect(ticket.get_absolute_url())
|
return HttpResponseRedirect(ticket.get_absolute_url())
|
||||||
else:
|
else:
|
||||||
return HttpResponseRedirect(ticket.ticket_url)
|
return HttpResponseRedirect(ticket.ticket_url)
|
||||||
|
Loading…
Reference in New Issue
Block a user