mirror of
https://github.com/moodle/moodle.git
synced 2025-01-29 19:50:14 +01:00
MDL-14052 fixed course display in upcoming events block - credit goes to Greg Rodenhiser; merged from MOODLE_19_STABLE
This commit is contained in:
parent
84857f8ccd
commit
23f36a2375
@ -44,6 +44,8 @@ class block_calendar_upcoming extends block_base {
|
||||
// the list of courses it will be grabbing events from.
|
||||
$filtercourse = NULL;
|
||||
$groupeventsfrom = NULL;
|
||||
$SESSION->cal_courses_shown = calendar_get_default_courses(true);
|
||||
calendar_set_referring_course(0);
|
||||
} else {
|
||||
// Forcibly filter events to include only those from the particular course we are in.
|
||||
$filtercourse = array($courseshown => $COURSE);
|
||||
|
Loading…
x
Reference in New Issue
Block a user