From c569af6d0fa5de88c9e4eac52da3da2fcf3d937f Mon Sep 17 00:00:00 2001 From: kindlm Date: Tue, 25 Mar 2025 16:07:42 +0100 Subject: [PATCH] =?UTF-8?q?L=C3=B6schen=20bei=20Personensuche=20l=C3=B6sch?= =?UTF-8?q?t=20auch=20Testtooleintr=C3=A4ge?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vilesci/personen/suche.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/vilesci/personen/suche.php b/vilesci/personen/suche.php index 6d2cf3cde..382723f9b 100644 --- a/vilesci/personen/suche.php +++ b/vilesci/personen/suche.php @@ -1051,6 +1051,16 @@ function casDeletePrestudent($db, $prestudent_id, $trans=true) } } + /* Entries from testtool */ + if(!$error) + { + $qry = 'DELETE FROM testtool.tbl_pruefling_frage WHERE pruefling_id='.$db->db_add_param($prestudent_id, FHC_INTEGER).'; + DELETE FROM testtool.tbl_antwort WHERE pruefling_id='.$db->db_add_param($pruefling->pruefling_id).'; + DELETE FROM testtool.tbl_pruefling WHERE prestudent_id='.$db->db_add_param($prestudent_id, FHC_INTEGER).';'; + if(!$db->db_query($qry)) + $error = true; + } + /* * Delete the tbl_student entry */