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:
parent
4e0b6c08c6
commit
8973c2e046
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user