Use update_ticket method when placing ticket on hold

This commit is contained in:
Timothy Hobbs 2023-11-26 16:40:52 +00:00
parent 8f71bdac7a
commit ffb7522e79

View File

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