aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Reyna <David.Reyna@windriver.com>2020-01-26 23:38:00 -0800
committerDavid Reyna <David.Reyna@windriver.com>2020-01-26 23:38:00 -0800
commitbdc472e483523aa5c10eb2fef2c34eb16f62b039 (patch)
treec78a140dbe0f1cf8b3d3be3f65673b4908286507
parent07cfde3b3686b56d967098e50c579ad4173fd70c (diff)
downloadsrtool-SRTOOL_DJANGO_1_11.tar.gz
srtool-SRTOOL_DJANGO_1_11.tar.bz2
srtool-SRTOOL_DJANGO_1_11.zip
srtool: inherit comments to new vulnerabilitys and investigationsSRTOOL_DJANGO_1_11
When creating a new Vulnerability or Investigation, inherit the parent object's (CVE/Vulnerability) "comments" field. Signed-off-by: David Reyna <David.Reyna@windriver.com>
-rw-r--r--lib/srtgui/views.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/srtgui/views.py b/lib/srtgui/views.py
index 7f819fd1..079fc670 100644
--- a/lib/srtgui/views.py
+++ b/lib/srtgui/views.py
@@ -1836,6 +1836,7 @@ def xhr_cve_commit(request):
description = cve.description,
status = cve.status,
priority = cve.priority,
+ comments = cve.comments,
)
vulnerability.save()
history_update.append(Update.ATTACH_INV % (vname))
@@ -1969,6 +1970,7 @@ def xhr_vulnerability_commit(request):
outcome = vulnerability_obj.outcome,
priority = vulnerability_obj.priority,
product = product_obj,
+ comments = vulnerability_obj.comments,
)
vul2inv = VulnerabilityToInvestigation.objects.create(vulnerability=vulnerability_obj,investigation=investigation_obj)
vul2inv.save()