From 2c932f3d86db0e024ffabf010e630b1ae0c55775 Mon Sep 17 00:00:00 2001 From: cgfhtw Date: Wed, 8 Jun 2022 10:30:07 +0200 Subject: [PATCH] Bugfix --- 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 ef007873b..a958120cb 100644 --- a/include/prestudent.class.php +++ b/include/prestudent.class.php @@ -587,7 +587,11 @@ class prestudent extends person ) AND - status_kurzbz = 'Interessent'"; + status_kurzbz = 'Interessent' + AND + NOT EXISTS ( + SELECT 1 FROM public.tbl_prestudentstatus WHERE prestudent_id=tbl_prestudent.prestudent_id AND status_kurzbz='Abgewiesener' + )"; if (!is_null($typ) && is_string($typ)) {