From 35808eda3cbd8074f2ead92dbd7bae6fb9213cec Mon Sep 17 00:00:00 2001 From: Cody Maffucci <46459665+Maffooch@users.noreply.github.com> Date: Fri, 1 Dec 2023 16:48:19 -0600 Subject: [PATCH] Finding Template: Correct save ordering (#9088) --- dojo/finding/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dojo/finding/views.py b/dojo/finding/views.py index 3610ef405b..1930835a66 100644 --- a/dojo/finding/views.py +++ b/dojo/finding/views.py @@ -2303,10 +2303,10 @@ def add_template(request): template.numerical_severity = Finding.get_numerical_severity( template.severity ) + template.save() finding_helper.save_vulnerability_ids_template( template, form.cleaned_data["vulnerability_ids"].split() ) - template.save() form.save_m2m() count = apply_cwe_mitigation( form.cleaned_data["apply_to_findings"], template