Skip to content

Commit

Permalink
Fix #8636: if "Development" was removed, None is used (#8644)
Browse files Browse the repository at this point in the history
  • Loading branch information
kiblik authored Sep 13, 2023
1 parent 55fbe0d commit 16c4462
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dojo/engagement/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ def add_tests(request, eid):

# Cant use the easy decorator because of the potential for either eid/pid being used
def import_scan_results(request, eid=None, pid=None):
environment = Development_Environment.objects.get(name='Development')
environment = Development_Environment.objects.filter(name='Development').first() # If 'Development' was removed, None is used
engagement = None
form = ImportScanForm(initial={'environment': environment})
cred_form = CredMappingForm()
Expand Down

0 comments on commit 16c4462

Please sign in to comment.