From 8973c2e0460617155dd35c3ae037c89e1549afb1 Mon Sep 17 00:00:00 2001 From: Ryan Prather Date: Wed, 9 Jan 2019 20:17:13 -0500 Subject: [PATCH] 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 --- exec/export-ckl.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/exec/export-ckl.php b/exec/export-ckl.php index 04828ea..6c6e4f9 100644 --- a/exec/export-ckl.php +++ b/exec/export-ckl.php @@ -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();