Skip to content
Snippets Groups Projects
Commit 668f856b authored by Moritz Strohm's avatar Moritz Strohm
Browse files

CourseDateAndRoomBookingExporter: fixed an error with dates and course_name

parent f37399a9
No related branches found
No related tags found
No related merge requests found
...@@ -522,11 +522,11 @@ class CourseDateAndRoomBookingExporter extends Exporter ...@@ -522,11 +522,11 @@ class CourseDateAndRoomBookingExporter extends Exporter
$course_dates_stmt_sql .= "INNER JOIN `resource_bookings` rb $course_dates_stmt_sql .= "INNER JOIN `resource_bookings` rb
ON `termine`.`termin_id` = rb.`range_id` "; ON `termine`.`termin_id` = rb.`range_id` ";
} }
if ($with_course_name) { }
if (!$institute_ids && $with_course_name) {
$course_dates_stmt_sql .= "LEFT JOIN `seminare` $course_dates_stmt_sql .= "LEFT JOIN `seminare`
ON `termine`.`range_id` = `seminare`.`seminar_id` "; ON `termine`.`range_id` = `seminare`.`seminar_id` ";
} }
}
$course_dates_stmt_sql .= "WHERE "; $course_dates_stmt_sql .= "WHERE ";
$course_dates_stmt_sql .= "( $course_dates_stmt_sql .= "(
`date` BETWEEN :begin AND :end `date` BETWEEN :begin AND :end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment