MDL-14052 fixed course display in upcoming events block - credit goes to Greg Rodenhiser; merged from MOODLE_19_STABLE

This commit is contained in:
skodak 2008-04-17 19:19:55 +00:00
parent 84857f8ccd
commit 23f36a2375

View File

@ -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);