Skip to content

Commit

Permalink
Finding Template: Correct save ordering (#9088)
Browse files Browse the repository at this point in the history
  • Loading branch information
Maffooch authored Dec 1, 2023
1 parent 5857833 commit 35808ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dojo/finding/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 35808ed

Please sign in to comment.