If a ticket hasn't been resolved, ensure that public users can still resolve it. Fixes GH-51, thanks to kotowicz.

This commit is contained in:
Ross Poulton 2011-04-28 20:23:16 +10:00
parent b4ffb91b9c
commit 592ec09916

View File

@ -91,10 +91,11 @@ def view_ticket(request):
request.POST = {
'new_status': Ticket.CLOSED_STATUS,
'public': 1,
'owner': ticket.assigned_to.id,
'title': ticket.title,
'comment': _('Submitter accepted resolution and closed ticket'),
}
if ticket.assigned_to:
request.POST['owner'] = ticket.assigned_to.id
request.GET = {}
return update_ticket(request, ticket_id, public=True)