zeige keine Prüfungstermine wo positive Note vorhanden ist

This commit is contained in:
Nikolaus Krondraf
2020-09-25 13:00:41 +02:00
parent 52fe60090e
commit 51c4e1f92b
+12 -5
View File
@@ -616,12 +616,19 @@ class pruefungCis extends basis_db
if ($uid !== null) if ($uid !== null)
{ {
// LVs entfernen wo schon eine Note für UID vorhanden ist // LVs entfernen wo schon eine positive Note für UID vorhanden ist
$qry .= " AND lehrveranstaltung_id NOT IN ( $qry .= " AND lehrveranstaltung_id NOT IN (
SELECT lehrveranstaltung_id SELECT lehrveranstaltung_id
FROM lehre.tbl_pruefung FROM lehre.tbl_pruefung
JOIN lehre.tbl_lehreinheit USING(lehreinheit_id) JOIN lehre.tbl_lehreinheit USING(lehreinheit_id)
WHERE student_uid = " . $this->db_add_param($uid) . ");"; WHERE student_uid = " . $this->db_add_param($uid) . "
AND note NOT IN (5, 7, 9, 11, 13, 14)
UNION
SELECT lehrveranstaltung_id
FROM lehre.tbl_zeugnisnote
WHERE student_uid = " . $this->db_add_param($uid) . "
AND note NOT IN (5, 7, 9, 11, 13, 14)
);";
} }
if($this->db_query($qry)) if($this->db_query($qry))