diff --git a/classes/exporters/CourseParticipantsExporter.php b/classes/exporters/CourseParticipantsExporter.php index 1971799bac2f599b7a60eb4557c4748f2e7bbabb..b3f5257024dbdc700b49673ef23a90c717af050f 100644 --- a/classes/exporters/CourseParticipantsExporter.php +++ b/classes/exporters/CourseParticipantsExporter.php @@ -302,7 +302,10 @@ class CourseParticipantsExporter extends Exporter $sql_data['semester_end'] = $semester->ende; } if ($institute_id) { - $where_sql[] = '`seminar_inst`.`institut_id` = :institute_id'; + $where_sql[] = '`seminar_inst`.`institut_id` IN ( + SELECT `Institut_id` FROM `Institute` + WHERE (`Institut_id` = :institute_id) OR (`fakultaets_id` = :institute_id) + )'; $sql_data['institute_id'] = $institute_id; } if ($status_levels) {