From 4d3c73c78f11e15b60557f4f07d2a15edd1520d1 Mon Sep 17 00:00:00 2001 From: Harald Bamberger Date: Tue, 19 May 2026 10:21:56 +0200 Subject: [PATCH 1/2] add join condition for notizzuordung via prestudent_id only --- application/controllers/api/frontend/v1/stv/Students.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/controllers/api/frontend/v1/stv/Students.php b/application/controllers/api/frontend/v1/stv/Students.php index b5ad79cf0..db546288c 100644 --- a/application/controllers/api/frontend/v1/stv/Students.php +++ b/application/controllers/api/frontend/v1/stv/Students.php @@ -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 . " From 7d3096c2e8ce53d1a61838e778ea1cd306ad5bbf Mon Sep 17 00:00:00 2001 From: Harald Bamberger Date: Tue, 19 May 2026 10:28:08 +0200 Subject: [PATCH 2/2] readd required assignments for tags removed during merge --- public/js/components/Stv/Studentenverwaltung/List.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/public/js/components/Stv/Studentenverwaltung/List.js b/public/js/components/Stv/Studentenverwaltung/List.js index 51c6faf5b..7e97e26c1 100644 --- a/public/js/components/Stv/Studentenverwaltung/List.js +++ b/public/js/components/Stv/Studentenverwaltung/List.js @@ -422,6 +422,16 @@ export default { if(selected.length > 0 || deselected.length > 0){ this.lastSelected = this.selected; + + //for tags + this.selectedRows = this.$refs.table.tabulator.getSelectedRows(); + this.selectedColumnValues = this.selectedRows.filter( + row => row.getData().prestudent_id !== undefined + && row.getData().prestudent_id + ).map( + row => row.getData().prestudent_id + ); + this.$emit('update:selected', data); } },