From c7832e62f71c2c1e2d06af23aac662600e62d4cc Mon Sep 17 00:00:00 2001 From: chfhtw Date: Tue, 23 Jun 2026 13:14:24 +0200 Subject: [PATCH] bugfix: add tablename to query to prevent ambiguous columns --- rdf/diplomasupplement.xml.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rdf/diplomasupplement.xml.php b/rdf/diplomasupplement.xml.php index 4b30b8691..b7b351e55 100644 --- a/rdf/diplomasupplement.xml.php +++ b/rdf/diplomasupplement.xml.php @@ -995,7 +995,7 @@ if (isset($_REQUEST["xmlformat"]) && $_REQUEST["xmlformat"] == "xml") // Check ob Lehrveranstaltung ein Praktikum mit eingetragener Firma besitzt $qry = " SELECT - tbl_firma.name, lehrveranstaltung_id, firma_id + tbl_firma.name, tbl_lehreinheit.lehrveranstaltung_id, firma_id FROM lehre.tbl_projektarbeit JOIN lehre.tbl_lehreinheit USING(lehreinheit_id) @@ -1019,14 +1019,14 @@ if (isset($_REQUEST["xmlformat"]) && $_REQUEST["xmlformat"] == "xml") // Aber kein Auslandssemester war, sonst wirds spaeter hinzugefügt $qry = " SELECT - lehrveranstaltung_id, titel, themenbereich, note, titel_english + tbl_lehreinheit.lehrveranstaltung_id, titel, themenbereich, note, titel_english FROM lehre.tbl_projektarbeit JOIN lehre.tbl_lehreinheit USING(lehreinheit_id) WHERE student_uid=".$db->db_add_param($uid_arr[$i])." AND projekttyp_kurzbz in('Bachelor', 'Diplom') - AND lehrveranstaltung_id=".$db->db_add_param($row_stud->lehrveranstaltung_id)." + AND tbl_lehreinheit.lehrveranstaltung_id=".$db->db_add_param($row_stud->lehrveranstaltung_id)." AND NOT EXISTS(SELECT 1 FROM bis.tbl_bisio JOIN lehre.tbl_lehreinheit USING(lehreinheit_id)