From c3b02bf74143f5b34c3c03bde971b74dee15ffa7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96sterreicher?= Date: Fri, 17 Sep 2021 10:55:46 +0200 Subject: [PATCH] Als ZGV Studiengangskuerzel wird das 3-Stellige Kuerzel verwendet anstatt der Kurzbzlang --- include/prestudent.class.php | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/include/prestudent.class.php b/include/prestudent.class.php index eb8767883..9a28961ff 100644 --- a/include/prestudent.class.php +++ b/include/prestudent.class.php @@ -2422,13 +2422,15 @@ class prestudent extends person return false; } - $qry = "SELECT kurzbzlang - FROM public.tbl_prestudent - JOIN public.tbl_prestudentstatus USING (prestudent_id) - JOIN public.tbl_studiengang USING (studiengang_kz) + $qry = "SELECT + UPPER(tbl_studiengang.typ || tbl_studiengang.kurzbz) as kuerzel + FROM + public.tbl_prestudent + 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 status_kurzbz in ('Absolvent','Diplomand','Unterbrecher','Student') - AND typ in ('b','m','d') + AND status_kurzbz in ('Absolvent','Diplomand','Unterbrecher','Student') + AND typ in ('b','m','d') ORDER BY status_kurzbz ASC LIMIT 1;"; @@ -2436,7 +2438,7 @@ class prestudent extends person { if ($row = $this->db_fetch_object()) { - $stg = $row->kurzbzlang; + $stg = $row->kuerzel; return $stg; } else