diff options
author | 2020-01-26 23:38:00 -0800 | |
---|---|---|
committer | 2020-01-26 23:38:00 -0800 | |
commit | bdc472e483523aa5c10eb2fef2c34eb16f62b039 (patch) | |
tree | c78a140dbe0f1cf8b3d3be3f65673b4908286507 /lib/srtgui/views.py | |
parent | 07cfde3b3686b56d967098e50c579ad4173fd70c (diff) | |
download | srtool-bdc472e483523aa5c10eb2fef2c34eb16f62b039.tar.gz srtool-bdc472e483523aa5c10eb2fef2c34eb16f62b039.tar.bz2 srtool-bdc472e483523aa5c10eb2fef2c34eb16f62b039.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>
Diffstat (limited to 'lib/srtgui/views.py')
-rw-r--r-- | lib/srtgui/views.py | 2 |
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() |