From 8901086a809bfc5717331b27fb1a573639ac1d45 Mon Sep 17 00:00:00 2001 From: Sam Splunks <72095718+samsplunks@users.noreply.github.com> Date: Fri, 26 Jul 2024 09:08:10 +0000 Subject: [PATCH] If title cannot be retrieved from POST, default should be ticket.title --- helpdesk/views/staff.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpdesk/views/staff.py b/helpdesk/views/staff.py index f98a666e..6466bb5c 100644 --- a/helpdesk/views/staff.py +++ b/helpdesk/views/staff.py @@ -578,7 +578,7 @@ def update_ticket_view(request, ticket_id, public=False): comment = request.POST.get('comment', '') new_status = int(request.POST.get('new_status', ticket.status)) - title = request.POST.get('title', '') + title = request.POST.get('title', ticket.title) owner = int(request.POST.get('owner', -1)) priority = int(request.POST.get('priority', ticket.priority)) queue = int(request.POST.get('queue', ticket.queue.id))