From ffb7522e797b9a709a4f4d3d3d922ad9209642cf Mon Sep 17 00:00:00 2001 From: Timothy Hobbs Date: Sun, 26 Nov 2023 16:40:52 +0000 Subject: [PATCH] Use update_ticket method when placing ticket on hold --- helpdesk/views/staff.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/helpdesk/views/staff.py b/helpdesk/views/staff.py index ff17c258..e1cdc967 100644 --- a/helpdesk/views/staff.py +++ b/helpdesk/views/staff.py @@ -1214,11 +1214,10 @@ def hold_ticket(request, ticket_id, unhold=False): ticket.on_hold = True title = _('Ticket placed on hold') - f = FollowUp( - ticket=ticket, + f = update_ticket( user=request.user, + ticket=ticket, title=title, - date=timezone.now(), public=True, ) f.save()