From eaaa8721ccd62488a8c3bb778ac32752db67720a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96sterreicher?= Date: Tue, 11 Dec 2018 15:39:52 +0100 Subject: [PATCH] =?UTF-8?q?Infocenter:=20-=20NumAbgeschickt=20zeigt=20nun?= =?UTF-8?q?=20keine=20Abgewiesenen=20mehr=20an=20-=20Wenn=20ein=20Prestude?= =?UTF-8?q?nt=20mehrere=20Interessenten=20hat=20von=20denen=20einer=20Best?= =?UTF-8?q?=C3=A4tigt=20ist=20und=20einer=20nicht=20wird=20das=20Studiense?= =?UTF-8?q?mester=20nun=20nur=20von=20den=20Best=C3=A4tigten=20Interessent?= =?UTF-8?q?en=20angezeigt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/system/infocenter/infocenterFreigegebenData.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/application/views/system/infocenter/infocenterFreigegebenData.php b/application/views/system/infocenter/infocenterFreigegebenData.php index 1c1a35367..08797586d 100644 --- a/application/views/system/infocenter/infocenterFreigegebenData.php +++ b/application/views/system/infocenter/infocenterFreigegebenData.php @@ -43,6 +43,7 @@ WHERE pss.status_kurzbz = '.$INTERESSENT_STATUS.' AND ps.person_id = p.person_id AND sg.typ IN ('.$STUDIENGANG_TYP.') + AND pss.bestaetigtam is not null AND pss.studiensemester_kurzbz IN (SELECT ss.studiensemester_kurzbz FROM public.tbl_studiensemester ss WHERE ss.ende >= NOW()) ORDER BY pss.datum DESC, pss.insertamum DESC, pss.ext_id DESC LIMIT 1 @@ -70,6 +71,12 @@ AND ps.person_id = p.person_id AND sg.typ IN ('.$STUDIENGANG_TYP.') AND pss.studiensemester_kurzbz IN (SELECT ss.studiensemester_kurzbz FROM public.tbl_studiensemester ss WHERE ss.ende >= NOW()) + AND NOT EXISTS ( + SELECT 1 + FROM tbl_prestudentstatus spss + WHERE spss.prestudent_id = ps.prestudent_id + AND spss.status_kurzbz = '.$REJECTED_STATUS.' + ) LIMIT 1 ) AS "AnzahlAbgeschickt", (