Skip to content

Commit

Permalink
Fix findings added by "Add Blank Finding" not having initial extra fi…
Browse files Browse the repository at this point in the history
…elds
  • Loading branch information
ColonelThirtyTwo committed Apr 12, 2024
1 parent aac9fb8 commit 66bd7f5
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 66bd7f5

Please sign in to comment.