From 261df66d7b5c75c84155a1b9f15858ba3a6a6655 Mon Sep 17 00:00:00 2001 From: oesi Date: Fri, 10 Mar 2017 16:35:58 +0100 Subject: [PATCH] =?UTF-8?q?Reihungstestlogin=20zeigt=20nur=20noch=20Person?= =?UTF-8?q?en=20an=20die=20Statuseintr=C3=A4ge=20mit=20Studiensemesterbegi?= =?UTF-8?q?nn=20nach=20dem=20Reihungstestdatum=20haben=20damit=20keine=20d?= =?UTF-8?q?oppelten=20Personen=20mit=20unterschiedlichen=20PrestudentIDs?= =?UTF-8?q?=20angzeigt=20werden=20wenn=20diese=20bereits=20einen=20Reihung?= =?UTF-8?q?stest=20in=20vorherigen=20Semestern=20besucht=20haben.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/prestudent.class.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/include/prestudent.class.php b/include/prestudent.class.php index e3195c315..8adcf5907 100755 --- a/include/prestudent.class.php +++ b/include/prestudent.class.php @@ -381,8 +381,11 @@ class prestudent extends person JOIN public.tbl_person USING(person_id) JOIN public.tbl_rt_person USING(person_id) JOIN public.tbl_reihungstest ON(tbl_reihungstest.reihungstest_id=tbl_rt_person.rt_id) - WHERE tbl_reihungstest.datum='.$this->db_add_param($datum).' - AND tbl_rt_person.studienplan_id IN (SELECT studienplan_id FROM public.tbl_prestudentstatus WHERE prestudent_id=tbl_prestudent.prestudent_id) + WHERE + tbl_reihungstest.datum='.$this->db_add_param($datum).' + AND tbl_rt_person.studienplan_id IN (SELECT studienplan_id FROM public.tbl_prestudentstatus WHERE prestudent_id=tbl_prestudent.prestudent_id) + AND EXISTS(SELECT * FROM public.tbl_prestudentstatus JOIN public.tbl_studiensemester USING(studiensemester_kurzbz) + WHERE prestudent_id=tbl_prestudent.prestudent_id AND tbl_studiensemester.start>'.$this->db_add_param($datum).') ORDER BY nachname,vorname'; if(!$this->db_query($sql_query))