Skip to content

Commit 7eedb7a

Browse files
authored
Merge pull request #10483 from DefectDojo/bugfix
Bugfix -> Dev: Release 2.36.0
2 parents d18677c + 8014264 commit 7eedb7a

6 files changed

Lines changed: 828 additions & 531 deletions

File tree

dojo/jira_link/helper.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,13 @@ def jira_environment(obj):
618618
if isinstance(obj, Finding):
619619
return "\n".join([str(endpoint) for endpoint in obj.endpoints.all()])
620620
elif isinstance(obj, Finding_Group):
621-
return "\n".join([jira_environment(finding) for finding in obj.findings.all()])
621+
envs = [
622+
jira_environment(finding)
623+
for finding in obj.findings.all()
624+
]
625+
626+
jira_environments = [env for env in envs if env]
627+
return "\n".join(jira_environments)
622628
else:
623629
return ''
624630

0 commit comments

Comments
 (0)