From 5582ea0057583170a16334df057d796232b068e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96sterreicher?= Date: Thu, 13 Jun 2013 12:28:38 +0000 Subject: [PATCH] Zu einer Lehrveranstaltung wird nun immer nur die letzte Projektarbeit angezeigt --- rdf/diplomasupplement.xml.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/rdf/diplomasupplement.xml.php b/rdf/diplomasupplement.xml.php index 5d5aed2f6..96586e71b 100644 --- a/rdf/diplomasupplement.xml.php +++ b/rdf/diplomasupplement.xml.php @@ -707,18 +707,19 @@ if (isset($_REQUEST["xmlformat"]) && $_REQUEST["xmlformat"] == "xml") 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') - ORDER BY beginn ASC, projektarbeit_id ASC;"; + AND projekttyp_kurzbz in('Bachelor', 'Diplom') + AND lehrveranstaltung_id=".$db->db_add_param($row_stud->lehrveranstaltung_id)." + ORDER BY beginn DESC, projektarbeit_id DESC LIMIT 1;"; if($result_thesis = $db->db_query($qry)) { while($row_thesis = $db->db_fetch_object($result_thesis)) { - if($row_thesis->lehrveranstaltung_id == $row_stud->lehrveranstaltung_id) - { + //if($row_thesis->lehrveranstaltung_id == $row_stud->lehrveranstaltung_id) + //{ $bezeichnung.= ": \"".$row_thesis->titel."\""; $bezeichnung_englisch.= ": \"".$row_thesis->titel."\""; - } + //} } }