From d48865d2a1ee8b913d337f3127369e44bff391f7 Mon Sep 17 00:00:00 2001 From: Harald Bamberger Date: Thu, 3 Jul 2025 16:37:45 +0200 Subject: [PATCH] only show lvs with lehre flag true in degree programs overview --- application/controllers/api/frontend/v1/Studium.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/application/controllers/api/frontend/v1/Studium.php b/application/controllers/api/frontend/v1/Studium.php index 23c6b87d5..6f1eff18f 100644 --- a/application/controllers/api/frontend/v1/Studium.php +++ b/application/controllers/api/frontend/v1/Studium.php @@ -260,7 +260,9 @@ SELECT tbl_lehrveranstaltung.*, FROM lehre.tbl_lehrveranstaltung JOIN lehre.tbl_studienplan_lehrveranstaltung USING(lehrveranstaltung_id) - WHERE tbl_studienplan_lehrveranstaltung.studienplan_id=? AND tbl_studienplan_lehrveranstaltung.semester=?"; + WHERE + tbl_lehrveranstaltung.lehre = true AND + tbl_studienplan_lehrveranstaltung.studienplan_id=? AND tbl_studienplan_lehrveranstaltung.semester=?"; if (defined("CIS_PROFIL_STUDIENPLAN_MODULE_AUSBLENDEN") && CIS_PROFIL_STUDIENPLAN_MODULE_AUSBLENDEN) $query .= " AND tbl_lehrveranstaltung.lehrtyp_kurzbz != 'modul'";