Handle case where update_ticket doesn't handle customfields_form

This commit is contained in:
Sam Splunks 2024-07-26 10:31:22 +00:00
parent 9ee0207c3c
commit c7b60267eb

View File

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