From c7b60267eb6ec8a639a827bc263c99d951b4301e Mon Sep 17 00:00:00 2001 From: Sam Splunks <72095718+samsplunks@users.noreply.github.com> Date: Fri, 26 Jul 2024 10:31:22 +0000 Subject: [PATCH] Handle case where update_ticket doesn't handle customfields_form --- helpdesk/update_ticket.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpdesk/update_ticket.py b/helpdesk/update_ticket.py index 20bac2d1..8577472b 100644 --- a/helpdesk/update_ticket.py +++ b/helpdesk/update_ticket.py @@ -315,7 +315,7 @@ def update_ticket( ticket.due_date = due_date # save custom fields and ticket changes - if customfields_form.is_valid(): + if customfields_form and customfields_form.is_valid(): customfields_form.save(followup=f) for checklist in ticket.checklists.all():