mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2024-11-22 16:03:19 +01:00
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:
parent
b4ffb91b9c
commit
592ec09916
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user