fix(ckl-export): Fix bug when exporting CKL

Added a "group by STIG_ID" statement to fix a bug.  This is a short-term fix as it will result in random VMS IDs populating where there is a duplicate.  A real fix will require capturing the checklist ID and saving it as part of the VMS ID.

#78 fixed
This commit is contained in:
Ryan Prather 2019-01-09 20:17:13 -05:00
parent 4e0b6c08c6
commit 8973c2e046
No known key found for this signature in database
GPG Key ID: 66FDE2B4E8AB87A7

View File

@ -391,7 +391,8 @@ function get_checklist_data($tgt, $chk) {
"JOIN sagacity.pdi_checklist_lookup pcl ON pcl.pdi_id = pdi.pdi_id",
"JOIN sagacity.target_checklist tc ON tc.chk_id = pcl.checklist_id",
"JOIN sagacity.stigs s ON s.pdi_id = pdi.pdi_id"
]
],
'group' => 'STIG_ID'
]);
$pdis = $db->help->execute();