Fixes issue #46 - could not reassign tickets.

This commit is contained in:
Ross Poulton 2009-01-27 10:19:06 +00:00
parent e37609de6e
commit 9830e1c3c1

View File

@ -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)