Skip to content

Commit 8e400a2

Browse files
ui import: allow providing test title (#13299)
1 parent 5881505 commit 8e400a2

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

dojo/engagement/views.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -961,6 +961,7 @@ def process_form(
961961
"active": None,
962962
"verified": None,
963963
"scan_type": request.POST.get("scan_type"),
964+
"test_title": form.cleaned_data.get("test_title"),
964965
"tags": form.cleaned_data.get("tags"),
965966
"version": form.cleaned_data.get("version"),
966967
"branch_tag": form.cleaned_data.get("branch_tag", None),

dojo/forms.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -530,6 +530,8 @@ class ImportScanForm(forms.Form):
530530
active_verified_choices = [("not_specified", "Not specified (default)"),
531531
("force_to_true", "Force to True"),
532532
("force_to_false", "Force to False")]
533+
test_title = forms.CharField(max_length=255, required=False, label="Test Title",
534+
help_text="Optional title for the Test to be created. If empty, the scan type is used.")
533535
scan_date = forms.DateTimeField(
534536
required=False,
535537
label="Scan Completion Date",

0 commit comments

Comments
 (0)