Skip to content

Commit ba1e525

Browse files
author
Chris Gårdenberg
committed
fix(Booking page): If the course is OnDemand, we should load the OnDemand variant instead, to get the events properly
1 parent ea4c3ac commit ba1e525

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

content/template/bookingTemplate/course-info.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@
2020
$name = ( ! empty( $edo['CourseName'] ) ? $edo['CourseName'] : $edo['InternalCourseName'] );
2121
}
2222

23+
$is_ondemand = $selected_course['OnDemand'];
24+
25+
if ( $is_ondemand ) {
26+
$selected_course = json_decode( EDUAPIHelper()->GetOnDemandCourseDetailInfo( $course_id, $group_by_city ), true );
27+
}
28+
2329
$noAvailableDates = false;
2430
$GLOBALS['noAvailableDates'] = false;
2531

0 commit comments

Comments
 (0)