From bda323ba05bd013bec6927008ab0a3bf478b4e96 Mon Sep 17 00:00:00 2001 From: ma0068 Date: Fri, 21 Jan 2022 10:26:31 +0100 Subject: [PATCH] =?UTF-8?q?Adaptierung=20Abfrage=20f=C3=BCr=20ZGV=20Master?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/prestudent.class.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/prestudent.class.php b/include/prestudent.class.php index eebe39d01..f2194fb61 100644 --- a/include/prestudent.class.php +++ b/include/prestudent.class.php @@ -2489,10 +2489,14 @@ class prestudent extends person $qry = "SELECT UPPER(tbl_studiengang.typ || tbl_studiengang.kurzbz) as kuerzel FROM - public.tbl_prestudent + public.tbl_prestudent pt JOIN public.tbl_prestudentstatus USING (prestudent_id) JOIN public.tbl_studiengang USING (studiengang_kz) WHERE person_id = ".$this->db_add_param($person_id, FHC_INTEGER)." + AND NOT EXISTS + (SELECT * FROM public.tbl_prestudentstatus ps + WHERE ps.prestudent_id = pt.prestudent_id + AND status_kurzbz = 'Abbrecher' ) AND status_kurzbz in ('Absolvent','Diplomand','Unterbrecher','Student') AND typ in ('b','m','d') ORDER BY status_kurzbz ASC