From bdc472e483523aa5c10eb2fef2c34eb16f62b039 Mon Sep 17 00:00:00 2001 From: David Reyna Date: Sun, 26 Jan 2020 23:38:00 -0800 Subject: srtool: inherit comments to new vulnerabilitys and investigations When creating a new Vulnerability or Investigation, inherit the parent object's (CVE/Vulnerability) "comments" field. Signed-off-by: David Reyna --- lib/srtgui/views.py | 2 ++ 1 file changed, 2 insertions(+) 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() -- cgit v1.2.3-13-gbd6f