add join condition for notizzuordung via prestudent_id only

This commit is contained in:
Harald Bamberger
2026-05-19 10:21:56 +02:00
parent 1b822fc8f8
commit 4d3c73c78f
@@ -894,7 +894,7 @@ class Students extends FHCAPI_Controller
n.start,
n.ende
FROM public.tbl_notizzuordnung AS nz
JOIN public.tbl_notiz AS n ON nz.notiz_id = n.notiz_id
JOIN public.tbl_notiz AS n ON nz.notiz_id = n.notiz_id AND nz.prestudent_id IS NOT NULL
JOIN public.tbl_notiz_typ AS nt ON n.typ = nt.typ_kurzbz "
. $whereTags .
"