Skip to content

Commit

Permalink
Merge pull request #419 from ColonelThirtyTwo/fix-add-blank-finding-n…
Browse files Browse the repository at this point in the history
…o-extra-fields

Fix findings added by "Add Blank Finding" not having initial extra fields
  • Loading branch information
chrismaddalena authored Apr 12, 2024
2 parents 28c7d12 + 66bd7f5 commit 982039b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 0 additions & 2 deletions ghostwriter/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -764,8 +764,6 @@ def post(self, request, *args, **kwargs):
del finding_dict["tags"]
del finding_dict["tagged_items"]

del finding_dict["extra_fields"]

report_link = ReportFindingLink(
report=report,
assigned_to=self.user_obj,
Expand Down
1 change: 1 addition & 0 deletions ghostwriter/reporting/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -928,6 +928,7 @@ def get(self, *args, **kwargs):
assigned_to=self.request.user,
position=get_position(obj.id, self.severity),
added_as_blank=True,
extra_fields=ExtraFieldSpec.initial_json(Finding),
)
report_link.save()

Expand Down

0 comments on commit 982039b

Please sign in to comment.