diff --git a/Database_Baseline.zip b/Database_Baseline.zip index 59a6c07..575cd5f 100644 Binary files a/Database_Baseline.zip and b/Database_Baseline.zip differ diff --git a/inc/database.inc b/inc/database.inc index 7e120bb..779a3b4 100644 --- a/inc/database.inc +++ b/inc/database.inc @@ -11477,13 +11477,13 @@ EOQ; ]); $this->help->execute(); -# Commented out 3 Nov 18 to fix #62 - Jeff Odegard -# $this->help->sql = "INSERT IGNORE INTO findings (tgt_id,pdi_id,findings_status_id) " . -# "SELECT {$id},pcl.pdi_id,1 " . -# "FROM target_checklist tc " . -# "JOIN pdi_checklist_lookup pcl ON pcl.checklist_id = tc.chk_id " . -# "WHERE tc.tgt_id = {$id}"; -# $this->help->execute(); + $this->help->query_type = db_helper::INSERT; + $this->help->sql = "INSERT IGNORE INTO findings (tgt_id,pdi_id,findings_status_id) " . + "SELECT {$id},pcl.pdi_id,1 " . + "FROM target_checklist tc " . + "JOIN pdi_checklist_lookup pcl ON pcl.checklist_id = tc.chk_id " . + "WHERE tc.tgt_id = {$id}"; + $this->help->execute(); $this->update_Target_Counts($id); }